Skip to content

Conversation

@dongsupark
Copy link
Collaborator

Update opentelemetry & opentelemetry_sdk to 0.27.1, tracing-opentelemetry to 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_config for TraceBuilder, it is necessary to call with_sampler directly from TraceBuilder without with_config.

See also open-telemetry/opentelemetry-rust#2303.

dependabot bot and others added 4 commits February 3, 2025 19:19
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.
@peytonr18
Copy link
Contributor

peytonr18 commented Feb 4, 2025

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!!

Copy link
Member

@jeremycline jeremycline left a 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

Copy link
Contributor

@peytonr18 peytonr18 left a comment

Choose a reason for hiding this comment

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

Testing succeeded!

@dongsupark dongsupark merged commit 803caec into Azure:main Feb 5, 2025
5 checks passed
@dongsupark dongsupark deleted the dongsu/opentelemetry-0.27 branch February 5, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file error-handling-logging rust Pull requests that update Rust code

Development

Successfully merging this pull request may close these issues.

4 participants