-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[v2] Add v1 factory converter to v2 storage factory #5497
[v2] Add v1 factory converter to v2 storage factory #5497
Conversation
Signed-off-by: James Ryans <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5497 +/- ##
=======================================
Coverage 96.37% 96.38%
=======================================
Files 327 329 +2
Lines 16028 16056 +28
=======================================
+ Hits 15447 15475 +28
Misses 404 404
Partials 177 177
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
cmd/jaeger/internal/extension/jaegerstorage/converter/reader.go
Outdated
Show resolved
Hide resolved
cmd/jaeger/internal/extension/jaegerstorage/converter/writer.go
Outdated
Show resolved
Hide resolved
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.
lgtm. The Reader part is not urgent since we don't have places that would need OTLP (the only place is the api_v3 endpoint).
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
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.
what's your plan for next steps? Add tests, or try to use this for real?
cmd/jaeger/internal/extension/jaegerstorage/converter/empty_test.go
Outdated
Show resolved
Hide resolved
cmd/jaeger/internal/extension/jaegerstorage/converter/factory.go
Outdated
Show resolved
Hide resolved
Signed-off-by: James Ryans <[email protected]>
I'm thinking of using this for real directly. Because I think this is a temporary package to support both v1 & v2 while we transitioning the storage plugin implementations to v2. But what do you think about that? Should I add the tests to minimize the error rate? |
I think the best way to validate API is to use it! Right now jaegerexporter operates directly on v1 storage API. What would it take to switch it to operate on v2 API? We can make a change to the exporter AND to the I would consider perhaps pulling the Reader into a separate PR from this one, since jaeger-v2 won't have an easy way to exercise v2->v1 adapter for the read path. |
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
cmd/jaeger/internal/extension/jaegerstorage/factoryadapter/factory.go
Outdated
Show resolved
Hide resolved
cmd/jaeger/internal/extension/jaegerstorage/factoryadapter/writer.go
Outdated
Show resolved
Hide resolved
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
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.
lgtm, can we add some tests?
yes, I'm working on it |
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
Signed-off-by: James Ryans <[email protected]>
cmd/jaeger/internal/extension/jaegerstorage/factoryadapter/writer_test.go
Show resolved
Hide resolved
Signed-off-by: James Ryans <[email protected]>
🎉 |
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test