Skip to content

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

shuraih775
Copy link
Contributor

@shuraih775 shuraih775 commented Mar 19, 2025

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?

  • Successfully tested by running make test

Checklist

…ided by OTEL collector contrib (pkg/translator/zipkin/zipkinthriftconverter)

Signed-off-by: Mohammed Shuraih Shaikh <[email protected]>
@shuraih775 shuraih775 requested a review from a team as a code owner March 19, 2025 10:23
@shuraih775 shuraih775 requested a review from joe-elliott March 19, 2025 10:23
@yurishkuro yurishkuro added the changelog:refactoring Internal code refactoring without functional changes label Mar 19, 2025
Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.11%. Comparing base (fbfa28e) to head (66b4962).
Report is 1 commits behind head on main.

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     
Flag Coverage Δ
badger_v1 10.20% <ø> (+0.33%) ⬆️
badger_v2 2.12% <ø> (+0.07%) ⬆️
cassandra-4.x-v1-manual 15.36% <ø> (+0.50%) ⬆️
cassandra-4.x-v2-auto 2.11% <ø> (+0.06%) ⬆️
cassandra-4.x-v2-manual 2.11% <ø> (+0.06%) ⬆️
cassandra-5.x-v1-manual 15.36% <ø> (+0.50%) ⬆️
cassandra-5.x-v2-auto 2.11% <ø> (+0.06%) ⬆️
cassandra-5.x-v2-manual 2.11% <ø> (+0.06%) ⬆️
elasticsearch-6.x-v1 20.15% <ø> (+0.65%) ⬆️
elasticsearch-7.x-v1 20.23% <ø> (+0.66%) ⬆️
elasticsearch-8.x-v1 20.40% <ø> (+0.66%) ⬆️
elasticsearch-8.x-v2 2.12% <ø> (+0.07%) ⬆️
grpc_v1 11.28% <ø> (+0.36%) ⬆️
grpc_v2 8.25% <ø> (+0.27%) ⬆️
kafka-3.x-v1 10.51% <ø> (+0.34%) ⬆️
kafka-3.x-v2 2.12% <ø> (+0.07%) ⬆️
memory_v2 2.12% <ø> (+0.07%) ⬆️
opensearch-1.x-v1 20.28% <ø> (+0.66%) ⬆️
opensearch-2.x-v1 20.28% <ø> (+0.66%) ⬆️
opensearch-2.x-v2 2.12% <ø> (+0.07%) ⬆️
tailsampling-processor 0.57% <ø> (+0.01%) ⬆️
unittests 94.89% <ø> (-0.14%) ⬇️

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


"github.com/jaegertracing/jaeger-idl/model/v1"
"github.com/jaegertracing/jaeger/model/converter/thrift/zipkin"
Copy link
Member

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?

Copy link
Contributor Author

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.

@yurishkuro yurishkuro changed the title Replaced the use of model/converter/thrift/zipkin Replace the use of model/converter/thrift/zipkin Mar 19, 2025
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@yurishkuro yurishkuro added this pull request to the merge queue Mar 19, 2025
Merged via the queue into jaegertracing:main with commit 7a2db6b Mar 19, 2025
57 checks passed
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
## 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]>
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:refactoring Internal code refactoring without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace use of model/converter/thrift/zipkin
2 participants