Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change storage_v2 GetTrace to GetTraces plural #6361

Merged
merged 8 commits into from
Dec 15, 2024

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Dec 14, 2024

Which problem is this PR solving?

  • GetTrace returns a single trace. The use case for FindTraceIDs specifically exists for loading traces in batches, but there's really no capability in Jaeger to do that: if you loaded 10K IDs you need to make 10K RPCs to load 10K traces.
  • Part of Implement Storage API v2 that operates on OTLP batches #5079

Description of the changes

How was this change tested?

  • CI, unit tests

@yurishkuro yurishkuro requested a review from a team as a code owner December 14, 2024 22:46
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
@yurishkuro yurishkuro added the changelog:exprimental Change to an experimental part of the code label Dec 14, 2024
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.10%. Comparing base (10cb6a9) to head (8164d02).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6361   +/-   ##
=======================================
  Coverage   96.10%   96.10%           
=======================================
  Files         360      360           
  Lines       20429    20433    +4     
=======================================
+ Hits        19634    19638    +4     
  Misses        607      607           
  Partials      188      188           
Flag Coverage Δ
badger_v1 8.97% <0.00%> (-0.01%) ⬇️
badger_v2 1.63% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.95% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-auto 1.57% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.57% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.95% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-auto 1.57% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.57% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 18.63% <0.00%> (-0.02%) ⬇️
elasticsearch-7.x-v1 18.71% <0.00%> (-0.02%) ⬇️
elasticsearch-8.x-v1 18.87% <0.00%> (-0.01%) ⬇️
elasticsearch-8.x-v2 1.62% <0.00%> (-0.01%) ⬇️
grpc_v1 10.49% <0.00%> (-0.01%) ⬇️
grpc_v2 7.92% <0.00%> (-0.01%) ⬇️
kafka-v1 9.30% <0.00%> (-0.01%) ⬇️
kafka-v2 1.63% <0.00%> (-0.01%) ⬇️
memory_v2 1.63% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 18.76% <0.00%> (-0.01%) ⬇️
opensearch-2.x-v1 18.77% <0.00%> (+<0.01%) ⬆️
opensearch-2.x-v2 1.63% <0.00%> (+<0.01%) ⬆️
tailsampling-processor 0.45% <0.00%> (-0.01%) ⬇️
unittests 94.98% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few nits / questions

storage_v2/tracestore/reader.go Outdated Show resolved Hide resolved
storage_v2/tracestore/reader.go Outdated Show resolved Hide resolved
@@ -62,9 +62,11 @@ func TestTraceReader_GetTraceDelegatesSuccessResponse(t *testing.T) {
traceReader := &TraceReader{
spanReader: sr,
}
traces, err := iter.CollectWithErrors(traceReader.GetTrace(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is CollectWithErrors still being used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't think so

Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove it then? or do we think we'll have a use case for it in the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not part of this PR, so I'd leave it. That whole package will go away in a couple of months.

storage_v2/factoryadapter/reader.go Outdated Show resolved Hide resolved
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
@yurishkuro yurishkuro merged commit d3d70e0 into jaegertracing:main Dec 15, 2024
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/storage changelog:exprimental Change to an experimental part of the code v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants