-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[refactor] Return chunk of traces from remote storage api v2 #6830
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
[refactor] Return chunk of traces from remote storage api v2 #6830
Conversation
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6830 +/- ##
==========================================
+ Coverage 96.05% 96.07% +0.02%
==========================================
Files 365 366 +1
Lines 20720 20750 +30
==========================================
+ Hits 19902 19935 +33
+ Misses 624 622 -2
+ Partials 194 193 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@@ -129,6 +129,12 @@ message FindTraceIDsResponse { | |||
repeated FoundTraceID trace_ids = 1; | |||
} | |||
|
|||
// TracesChunk is a chunk of traces returned by the storage backend. | |||
// Each TracesData object contains spans belonging to a single trace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Each TracesData object contains spans belonging to a single trace. | |
// All spans in a single TracesData object MUST belong to the same trace. | |
// Spans from a single large trace MAY be split across multiple chunks, | |
// but those chunks MUST be consecutive. |
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
@@ -129,6 +129,14 @@ message FindTraceIDsResponse { | |||
repeated FoundTraceID trace_ids = 1; | |||
} | |||
|
|||
// Chunking requirements: | |||
// - A single chunk MUST NOT contain spans from multiple traces. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the use of the word "chunk" is misleading here. Since the type is called xxChunk one might interpret that the whole chunk (multiple v1.TracesData
entries) must be for the same trace, which is not the case.
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
…racing#6830) ## Which problem is this PR solving? - Towards jaegertracing#6789 ## Description of the changes - This PR addresses jaegertracing#6829 (comment) and changes the remote storage api v2 to return a chunk of traces instead of a single trace from `GetTraces` and `FindTraces` ## How was this change tested? - CI ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Mahad Zaryab <[email protected]>
…racing#6830) ## Which problem is this PR solving? - Towards jaegertracing#6789 ## Description of the changes - This PR addresses jaegertracing#6829 (comment) and changes the remote storage api v2 to return a chunk of traces instead of a single trace from `GetTraces` and `FindTraces` ## How was this change tested? - CI ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: Mahad Zaryab <[email protected]> Signed-off-by: amol-verma-allen <[email protected]>
Which problem is this PR solving?
Description of the changes
GetServices
Call in GRPC reader for remote storage api v2 #6829 (comment) and changes the remote storage api v2 to return a chunk of traces instead of a single trace fromGetTraces
andFindTraces
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test