-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[refactor] Consolidate v1/v2 reader factory adapter functionality #7019
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] Consolidate v1/v2 reader factory adapter functionality #7019
Conversation
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
@@ -23,11 +23,13 @@ type TraceReader struct { | |||
spanReader spanstore.Reader | |||
} | |||
|
|||
func GetV1Reader(reader tracestore.Reader) (spanstore.Reader, bool) { | |||
func GetV1Reader(reader tracestore.Reader) spanstore.Reader { |
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.
do we need similar change for writer?
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.
yep - will do in a follow-up PR
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7019 +/- ##
==========================================
+ Coverage 95.97% 95.99% +0.02%
==========================================
Files 346 346
Lines 20632 20622 -10
==========================================
- Hits 19802 19797 -5
+ Misses 626 622 -4
+ Partials 204 203 -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:
|
…egertracing#7019) ## Which problem is this PR solving? - Towards jaegertracing#6979 ## Description of the changes - This PR consolidates the v1/v2 reader adapter functionality by combining `GetV1Reader` with `NewSpanReader` ## 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]>
…egertracing#7019) ## Which problem is this PR solving? - Towards jaegertracing#6979 ## Description of the changes - This PR consolidates the v1/v2 reader adapter functionality by combining `GetV1Reader` with `NewSpanReader` ## 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
GetV1Reader
withNewSpanReader
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test