-
Notifications
You must be signed in to change notification settings - Fork 14
Update opentelemetry(_sdk) to 0.27, tracing-opentelemetry 0.28, fix build issues #161
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
Updates the requirements on [opentelemetry_sdk](https://github.com/open-telemetry/opentelemetry-rust) to permit the latest version. - [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases) - [Commits](open-telemetry/opentelemetry-rust@opentelemetry_sdk-0.26.0...opentelemetry_sdk-0.27.1) --- updated-dependencies: - dependency-name: opentelemetry_sdk dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Updates the requirements on [opentelemetry](https://github.com/open-telemetry/opentelemetry-rust) to permit the latest version. - [Release notes](https://github.com/open-telemetry/opentelemetry-rust/releases) - [Commits](open-telemetry/opentelemetry-rust@opentelemetry-0.26.0...opentelemetry-0.27.1) --- updated-dependencies: - dependency-name: opentelemetry dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Updates the requirements on [tracing-opentelemetry](https://github.com/tokio-rs/tracing-opentelemetry) to permit the latest version. - [Release notes](https://github.com/tokio-rs/tracing-opentelemetry/releases) - [Changelog](https://github.com/tokio-rs/tracing-opentelemetry/blob/v0.1.x/CHANGELOG.md) - [Commits](tokio-rs/tracing-opentelemetry@v0.27.0...v0.28.0) --- updated-dependencies: - dependency-name: tracing-opentelemetry dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
As opentelemetry 0.27 or newer does not have a method `with_config` for TraceBuilder, it is necessary to call `with_sampler` directly from TraceBuilder without `with_config`. Needed to fix build issues with opentelemetry(_sdk) 0.27 or newer as well as tracing_opentelemetry 0.28 or newer. See also open-telemetry/opentelemetry-rust#2303.
|
At first glance, this looks good to me -- but let me run it through and try to build an image with this to make sure the KVP still works as expected. I've found upgrading open-telemetry to sometimes break the functionality so with that change and with_config deprecated. testing seems necessary. If the image succeeds w KVP sent to HyperV, I'll approve. Thanks for taking care of this!! |
jeremycline
left a comment
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.
Everything looks good to me, but I'll defer to @peytonr18 and the test results
peytonr18
left a comment
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.
Testing succeeded!
Update
opentelemetry&opentelemetry_sdkto 0.27.1,tracing-opentelemetryto 0.28.(Replaces #158, #159, #160)
Fix build issues with opentelemetry(_sdk) 0.27 or newer as well as tracing-opentelemetry 0.28 or newer. As opentelemetry 0.27 or newer does not have a method
with_configfor TraceBuilder, it is necessary to callwith_samplerdirectly from TraceBuilder withoutwith_config.See also open-telemetry/opentelemetry-rust#2303.