Skip to content
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

Create new opentelemetry-jaeger-propagator library #1487

Merged

Conversation

mattbodd
Copy link
Contributor

@mattbodd mattbodd commented Jan 22, 2024

Description

Create opentelemetry-jaeger-propagator to prepare for opentelemetry-jaeger exporter deprecation (https://opentelemetry.io/blog/2022/jaeger-native-otlp/).

This is the first step taken from #995 (comment) towards resolving #995.

Changes

  • Create a new opentelemetry-jaeger-propagator library
  • Moves opentelemetry-jaeger::Propagator module to opentelemetry-jaeger-propagator

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Copy link

linux-foundation-easycla bot commented Jan 22, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@mattbodd mattbodd changed the title [WIP] Create new library for opentelemetry-jaeger-propagator [WIP] Create new opentelemetry-jaeger-propagator library Jan 23, 2024
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 248 lines in your changes are missing coverage. Please review.

Comparison is base (85f678a) 64.0% compared to head (5aabbeb) 63.9%.
Report is 1 commits behind head on main.

❗ Current head 5aabbeb differs from pull request most recent head 971b553. Consider uploading reports for the commit 971b553 to get more accurate results

Files Patch % Lines
...try-jaeger-propagator/src/testing/jaeger_api_v2.rs 0.0% 194 Missing ⚠️
opentelemetry-jaeger-propagator/src/testing/mod.rs 0.0% 53 Missing ⚠️
opentelemetry-jaeger-propagator/src/propagator.rs 99.8% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1487     +/-   ##
=======================================
- Coverage   64.0%   63.9%   -0.2%     
=======================================
  Files        142     144      +2     
  Lines      19507   20042    +535     
=======================================
+ Hits       12499   12808    +309     
- Misses      7008    7234    +226     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mattbodd mattbodd marked this pull request as ready for review January 23, 2024 20:26
@mattbodd mattbodd requested a review from a team January 23, 2024 20:26
@mattbodd mattbodd changed the title [WIP] Create new opentelemetry-jaeger-propagator library Create new opentelemetry-jaeger-propagator library Jan 23, 2024
@mattbodd
Copy link
Contributor Author

@cijothomas please let me know if this is what you had in mind for #995 (comment). I would especially be interested in getting feedback on the style/approach I've taken (ie: need more docs, additional unit tests are too granular).

## v0.21.0

### Changed
- Move opentelemetry-jaeger::Propagator logic to its own crate (opentelemetry-jaeger-propagator) to prepare for opentelemetry-jaeger exporter deprecation [#1487](https://github.com/open-telemetry/opentelemetry-rust/pull/1487)
Copy link
Member

@cijothomas cijothomas Jan 24, 2024

Choose a reason for hiding this comment

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

lets be more descriptive here to smoothen migration.
This crate previously contained two functionalities - an exporter to Jaeger, and a Jaeger propagator. Going forward, Jaeger propagator is shipped as new crate "crate-name"/link. The JaegerExporter will be deprecated after the next release, and users should use OTLP exporter instead. See "linktoexample" showing OTLPExporter with Jaeger.

Copy link
Contributor

Choose a reason for hiding this comment

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

The JaegerExporter will be deprecated after the next release, and users should use OTLP exporter instead. See "linktoexample" showing OTLPExporter with Jaeger.

+1. Let's just call out this create will be deprecate with only exporter in it.

@cijothomas
Copy link
Member

@mattbodd This matches my expectation (left some comments to better describe changelog).
@TommyCpp Could you also review, and see if we have sufficient information for users to migrate and for us to deprecate opentelemetry-jaeger.

@@ -41,9 +41,10 @@ exporting telemetry:
```rust
use opentelemetry::global;
use opentelemetry::trace::Tracer;
use opentelemetry_jaeger_propagator;
Copy link
Member

Choose a reason for hiding this comment

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

this readme file needs to updated to reflect it no longer has propagator and warning about exporter being removed in the next release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the opentelemetry-jaeger readme to provide a warning about the upcoming deprecation of the Jaeger exporter and migration of the Jaeger propagator to a new crate.

Copy link
Member

Choose a reason for hiding this comment

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

opentelemetry-jaeger-propagator/src/lib.rs Outdated Show resolved Hide resolved
opentelemetry-jaeger-propagator/src/lib.rs Outdated Show resolved Hide resolved
opentelemetry-jaeger-propagator/Cargo.toml Outdated Show resolved Hide resolved
## v0.21.0

### Changed
- Move opentelemetry-jaeger::Propagator logic to its own crate (opentelemetry-jaeger-propagator) to prepare for opentelemetry-jaeger exporter deprecation [#1487](https://github.com/open-telemetry/opentelemetry-rust/pull/1487)
Copy link
Contributor

Choose a reason for hiding this comment

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

The JaegerExporter will be deprecated after the next release, and users should use OTLP exporter instead. See "linktoexample" showing OTLPExporter with Jaeger.

+1. Let's just call out this create will be deprecate with only exporter in it.

Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

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

Thanks.
We may need some more cleanups to make sure no leftovers exist that can cause confusion.

@mattbodd
Copy link
Contributor Author

Thanks @cijothomas for the review and approval. Do we want to wait for TommyCpp and/or others to give a final review + approval before merging or is your approval enough.

@cijothomas
Copy link
Member

Thanks @cijothomas for the review and approval. Do we want to wait for TommyCpp and/or others to give a final review + approval before merging or is your approval enough.

For trivial changes, one approval is good. This needs one more, to catch things one person may have missed! Lets wait for @TommyCpp to review.

Copy link
Contributor

@TommyCpp TommyCpp left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for working on this

@cijothomas cijothomas merged commit 0101233 into open-telemetry:main Jan 26, 2024
12 of 13 checks passed
@mattbodd mattbodd deleted the deprecate_opentelemetry_jaeger_exporter branch January 26, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants