-
Notifications
You must be signed in to change notification settings - Fork 721
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
opentelemetry: update to latest otel release version #1049
Conversation
## Motivation Support the latest OpenTelemetry specification ## Solution In order to support the latest spec, this patch makes the following breaking API changes: * Update `opentelemetry` to 0.9.x * Update `CompatSpan` to reflect changes to `Span` trait * Update `PreSampledTracer` interface to reflect span context -> span reference renaming. Additionally the following non-public api, doc, and example changes: * Update examples and docs to use new simplified pipeline builder. * As `opentelemetry::api` no longer exports trace types, internally use `opentelemetry::api::trace as otel` to disambiguate from tracing types. * Remove `rand` dependency as it is no longer needed * Update private methods to use span references instead of span contexts
@hawkw looks like some exporters (including jaeger) don't support rust back to 1.42, could just remove the dependency and have docs that suggest jaeger usage. |
Thank you for this PR - I was going to do this just now but realized the PR already exists! |
@adelbertc yep! holding off with this though until another release to both ensure rust 1.42 support in (open-telemetry/opentelemetry-rust#296) and the spec reverted their rename of SpanContext so no use introducing that churn here (open-telemetry/opentelemetry-specification#1127) |
I suppose this should also bump the tracing-opentelemetry crate version? |
Is this specifically in examples, or are they actual dependencies of the crate? Because if it's just for the examples, I think we may just want to exclude the |
# Conflicts: # tracing-opentelemetry/src/layer.rs # tracing-opentelemetry/src/span_ext.rs
@hawkw the latest otel release is compatible with rust 1.42.0 now, should be good to review this whenever you have time 🙏 |
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.
Will be nice to have this. Changes look good to me.
This is awesome! Thanks, so much! How often does |
@kjvalencik I think we'll need to backport this to the |
## Motivation Support the latest OpenTelemetry specification ## Solution In order to support the latest spec, this patch makes the following breaking API changes: * Update `opentelemetry` to 0.10.x * Update `CompatSpan` to reflect changes to `Span` trait * Record `u64` values as strings as they are no longer supported in OpenTelemetry. Additionally the following non-public api, doc, and example changes: * Update examples and docs to use new simplified pipeline builder. * As `opentelemetry::api` no longer exports trace types, internally use `opentelemetry::trace as otel` to disambiguate from tracing types. * Remove `rand` dependency as it is no longer needed Co-authored-by: Eliza Weisman <eliza@buoyant.io> # Conflicts: # examples/examples/opentelemetry-remote-context.rs # tracing-opentelemetry/Cargo.toml # tracing-opentelemetry/src/layer.rs # tracing-opentelemetry/src/span_ext.rs # tracing-opentelemetry/src/tracer.rs
This backports #1049, which was already approved on master. ## Motivation Support the latest OpenTelemetry specification ## Solution In order to support the latest spec, this patch makes the following breaking API changes: * Update `opentelemetry` to 0.10.x * Update `CompatSpan` to reflect changes to `Span` trait * Record `u64` values as strings as they are no longer supported in OpenTelemetry. Additionally the following non-public api, doc, and example changes: * Update examples and docs to use new simplified pipeline builder. * As `opentelemetry::api` no longer exports trace types, internally use `opentelemetry::trace as otel` to disambiguate from tracing types. * Remove `rand` dependency as it is no longer needed Co-authored-by: Eliza Weisman <eliza@buoyant.io> # Conflicts: # examples/examples/opentelemetry-remote-context.rs # tracing-opentelemetry/Cargo.toml # tracing-opentelemetry/src/layer.rs # tracing-opentelemetry/src/span_ext.rs # tracing-opentelemetry/src/tracer.rs
…okio-rs#1099) This backports tokio-rs#1049, which was already approved on master. Support the latest OpenTelemetry specification In order to support the latest spec, this patch makes the following breaking API changes: * Update `opentelemetry` to 0.10.x * Update `CompatSpan` to reflect changes to `Span` trait * Record `u64` values as strings as they are no longer supported in OpenTelemetry. Additionally the following non-public api, doc, and example changes: * Update examples and docs to use new simplified pipeline builder. * As `opentelemetry::api` no longer exports trace types, internally use `opentelemetry::trace as otel` to disambiguate from tracing types. * Remove `rand` dependency as it is no longer needed Co-authored-by: Eliza Weisman <eliza@buoyant.io>
Motivation
Support the latest OpenTelemetry specification
Solution
In order to support the latest spec, this patch makes the following breaking API changes:
opentelemetry
to 0.10.xCompatSpan
to reflect changes toSpan
traitu64
values as strings as they are no longer supported in OpenTelemetryAdditionally the following non-public api, doc, and example changes:
opentelemetry::api
no longer exports trace types, internally useopentelemetry::trace as otel
to disambiguate from tracing types.rand
dependency as it is no longer needed