-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Replace the use of model/converter/thrift/zipkin #6879
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
Conversation
…ided by OTEL collector contrib (pkg/translator/zipkin/zipkinthriftconverter) Signed-off-by: Mohammed Shuraih Shaikh <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6879 +/- ##
==========================================
- Coverage 96.23% 96.11% -0.12%
==========================================
Files 344 341 -3
Lines 19972 19641 -331
==========================================
- Hits 19220 18878 -342
- Misses 569 577 +8
- Partials 183 186 +3
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:
|
|
||
"github.com/jaegertracing/jaeger-idl/model/v1" | ||
"github.com/jaegertracing/jaeger/model/converter/thrift/zipkin" |
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.
Why is it that in tests you had to introduce extra error handling but here just swapping the import is sufficient?
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.
Because the Implementation of SerializeThrift function in jaeger only returned []byte, but its implementation was changed in OTEL collector contrib as it now returns ([]byte,err).
And the SerializeThrift func is only used in the test files, so only the test files needed extra error handling.
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.
Thanks!
## Which problem is this PR solving? - Resolves jaegertracing#6859 ## Description of the changes - Changed the all imports of "github.com/jaegertracing/jaeger/model/converter/thrift/zipkin" to "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin/zipkinthriftconverter". - Deleted model/converter/thrift/zipkin package as we don't use it. ## How was this change tested? - Successfully tested by running make test ## Checklist - [ ✔] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [ ✔ ] I have signed all commits - [ ✔] I have run lint and test steps successfully Signed-off-by: Mohammed Shuraih Shaikh <[email protected]>
## Which problem is this PR solving? - Resolves jaegertracing#6859 ## Description of the changes - Changed the all imports of "github.com/jaegertracing/jaeger/model/converter/thrift/zipkin" to "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin/zipkinthriftconverter". - Deleted model/converter/thrift/zipkin package as we don't use it. ## How was this change tested? - Successfully tested by running make test ## Checklist - [ ✔] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [ ✔ ] I have signed all commits - [ ✔] I have run lint and test steps successfully Signed-off-by: Mohammed Shuraih Shaikh <[email protected]> Signed-off-by: amol-verma-allen <[email protected]>
Which problem is this PR solving?
Description of the changes
Changed the all imports of "github.com/jaegertracing/jaeger/model/converter/thrift/zipkin" to "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin/zipkinthriftconverter".
Deleted model/converter/thrift/zipkin package as we don't use it.
How was this change tested?
Checklist