diff --git a/Cargo.toml b/Cargo.toml index e5a25946ce..99d8906132 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,10 @@ tonic = { version = "0.12.3", default-features = false } tonic-build = "0.12" tokio = { version = "1", default-features = false } tokio-stream = "0.1" -tracing = { version = "0.1", default-features = false } -tracing-core = { version = "0.1", default-features = false } +# Using `tracing 0.1.40` because 0.1.39 (which is yanked) introduces the ability to set event names in macros, +# required for OpenTelemetry's internal logging macros. +tracing = { version = ">=0.1.40", default-features = false } +# `tracing-core >=0.1.33` is required for compatibility with `tracing >=0.1.40`. +tracing-core = { version = ">=0.1.33", default-features = false } tracing-subscriber = { version = "0.3", default-features = false } url = { version = "2.5", default-features = false } diff --git a/opentelemetry-sdk/CHANGELOG.md b/opentelemetry-sdk/CHANGELOG.md index c1dc11f43a..06b5a76703 100644 --- a/opentelemetry-sdk/CHANGELOG.md +++ b/opentelemetry-sdk/CHANGELOG.md @@ -102,6 +102,9 @@ - Getter methods have been introduced to access field values. This change impacts custom exporter and processor developers by requiring updates to code that directly accessed LogRecord fields. They must now use the provided getter methods (e.g., `log_record.event_name()` instead of `log_record.event_name`). +- Upgrade the tracing crate used for internal logging to version 0.1.40 or later. This is necessary because the internal logging macros utilize the name field as +metadata, a feature introduced in version 0.1.40. [#2418](https://github.com/open-telemetry/opentelemetry-rust/pull/2418) + ## 0.27.1 Released 2024-Nov-27