-
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 otel to 0.18.0 #2303
Conversation
## Motivation Support the latest OpenTelemetry specification. ## Solution Update `opentelemetry` to the latest `0.18.x` release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer's `value.` prefix has been changed to `histogram.` and behaves accordingly. Additionally the `PushController` configuration for the metrics layer has been simplified to accept a `BasicController` that can act in either push or pull modes. Finally trace sampling in the sdk's `PreSampledTracer` impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839.
Build faiilure with |
tracing/tracing-opentelemetry/Cargo.toml Lines 35 to 36 in 84633ea
Never mind, looks like this branch actually removes those. Putting them back should fix this: #2303 (review) |
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.
It looks like the minimal versions build failure is caused by the removal of explicit dependencies on async-trait
in tracing-opentelemetry
's Cargo.toml
.
I think if we put those back, the -Zminimal-versions
CI build will pass again and we can move forwards with this PR.
@jtescher is there a reason the async-trait
dependencies were removed? If we needed to get rid of them for some reason, that will complicate fixing the minimal-versions build...
@hawkw ah fixed, the |
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.
okay, great, now that the build passes, this LGTM!
I think we can safely ignore the nightly build failure, though I'm going to see if there's an existing bug report for this...
Edit: ah, looks like that's rust-lang/rust#101844
Is it possible to push a new release of tracing-opentelemetry? I think this PR should fix #2306 |
## Motivation Support the latest OpenTelemetry specification. ## Solution Update `opentelemetry` to the latest `0.18.x` release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer's `value.` prefix has been changed to `histogram.` and behaves accordingly. Additionally the `PushController` configuration for the metrics layer has been simplified to accept a `BasicController` that can act in either push or pull modes. Finally trace sampling in the sdk's `PreSampledTracer` impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839. * Update MSRV to 1.56 * Update examples * Fix async-trait dep # Conflicts: # .github/workflows/CI.yml # tracing-opentelemetry/Cargo.toml # tracing-opentelemetry/src/layer.rs # tracing-opentelemetry/src/metrics.rs # tracing-opentelemetry/tests/metrics_publishing.rs
## Motivation Support the latest OpenTelemetry specification. ## Solution Update `opentelemetry` to the latest `0.18.x` release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer's `value.` prefix has been changed to `histogram.` and behaves accordingly. Additionally the `PushController` configuration for the metrics layer has been simplified to accept a `BasicController` that can act in either push or pull modes. Finally trace sampling in the sdk's `PreSampledTracer` impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839. * Update MSRV to 1.56 * Update examples * Fix async-trait dep * Update msrv action Co-authored-by: Eliza Weisman <eliza@buoyant.io>
## Motivation Support the latest OpenTelemetry specification. ## Solution Update `opentelemetry` to the latest `0.18.x` release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer's `value.` prefix has been changed to `histogram.` and behaves accordingly. Additionally the `PushController` configuration for the metrics layer has been simplified to accept a `BasicController` that can act in either push or pull modes. Finally trace sampling in the sdk's `PreSampledTracer` impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839. * Update MSRV to 1.56 * Update examples * Fix async-trait dep * Update msrv action Co-authored-by: Eliza Weisman <eliza@buoyant.io>
### Breaking Changes - Upgrade to `v0.18.0` of `opentelemetry` (#2303) For list of breaking changes in OpenTelemetry, see the [v0.18.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0180). ### Fixed - `on_event` respects event's explicit parent (#2296)
## Motivation Support the latest OpenTelemetry specification. ## Solution Update `opentelemetry` to the latest `0.18.x` release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer's `value.` prefix has been changed to `histogram.` and behaves accordingly. Additionally the `PushController` configuration for the metrics layer has been simplified to accept a `BasicController` that can act in either push or pull modes. Finally trace sampling in the sdk's `PreSampledTracer` impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839. * Update MSRV to 1.56 * Update examples * Fix async-trait dep * Update msrv action Co-authored-by: Eliza Weisman <eliza@buoyant.io>
### Breaking Changes - Upgrade to `v0.18.0` of `opentelemetry` (tokio-rs#2303) For list of breaking changes in OpenTelemetry, see the [v0.18.0 changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry/CHANGELOG.md#v0180). ### Fixed - `on_event` respects event's explicit parent (tokio-rs#2296)
Motivation
Support the latest OpenTelemetry specification.
Solution
Update
opentelemetry
to the latest0.18.x
release. Breaking changes in the metrics spec have removed value recorders and added histograms so the metrics layer'svalue.
prefix has been changed tohistogram.
and behaves accordingly. Additionally thePushController
configuration for the metrics layer has been simplified to accept aBasicController
that can act in either push or pull modes. Finally trace sampling in the sdk'sPreSampledTracer
impl has been updated to match the sampling logic in open-telemetry/opentelemetry-rust#839.