chore(deps): update opentelemetry to 0.29 #227
+8
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.28
->0.29
0.28
->0.29
0.28
->0.29
0.28
->0.29
0.28
->0.29
0.28
->0.29
0.28
->0.29
0.28
->0.29
Release Notes
open-telemetry/opentelemetry-rust (opentelemetry)
v0.29.0
Compare Source
Released 2025-Mar-21
ExportError
trait fromopentelemetry::trace::ExportError
toopentelemetry_sdk::export::ExportError
TraceError
enum fromopentelemetry::trace::TraceError
toopentelemetry_sdk::trace::TraceError
TraceResult
type alias fromopentelemetry::trace::TraceResult
toopentelemetry_sdk::trace::TraceResult
InstrumentationScope
implementation forPartialEq
andHash
fixed to include Attributes also.Baggage
fromValue
toStringValue
Baggage
constants to reflect latest standard (MAX_KEY_VALUE_PAIRS
- 180 -> 64,MAX_BYTES_FOR_ONE_PAIR
- removed) and increased insert performance see #2284.Baggage.remove()
signature with.get()
to take the key as a referenceBaggage
can't be retrieved from theContext
directly anymore and needs to be accessed viacontext.baggage()
with_baggage()
andcurrent_with_baggage()
override any existingBaggage
in theContext
Baggage
keys can't be empty and only allow ASCII visual chars, except"(),/:;<=>?@​[\]{}
(see RFC7230, Section 3.2.6)KeyValueMetadata
does not publicly expose its fields. This should be transparent change to the users.Context
to use a stack to properly handle out of order dropping ofContextGuard
. This imposes a limit of65535
nested contexts on a single thread. See #2378 and #1887.name: Option<&str>
parameter to theevent_enabled
methodon the
Logger
trait. This allows implementations (SDK, processor, exporters)to leverage this additional information to determine if an event is enabled.
open-telemetry/opentelemetry-rust (opentelemetry-jaeger-propagator)
v0.29.0
Compare Source
Released 2025-Mar-21
opentelemetry
dependency version to 0.29.open-telemetry/opentelemetry-rust (opentelemetry-otlp)
v0.29.0
Compare Source
Released 2025-Mar-21
Update
opentelemetry
dependency version to 0.29Update
opentelemetry_sdk
dependency version to 0.29Update
opentelemetry-http
dependency version to 0.29Update
opentelemetry-proto
dependency version to 0.29The
OTEL_EXPORTER_OTLP_TIMEOUT
,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT
andOTEL_EXPORTER_OTLP_LOGS_TIMEOUT
are changed from seconds to miliseconds.Fixed
.with_headers()
inHttpExporterBuilder
to correctly support multiple key/value pairs. #2699Fixed
#2770
partially to properly handle
shutdown()
when usinghttp
. (tonic
stilldoes not do proper shutdown)
Breaking
ExporterBuilder's build() method now Result with
ExporterBuildError
being theError variant. Previously it returned signal specific errors like
LogError
from the
opentelemetry_sdk
, which are no longer part of the sdk. No changesrequired if you were using unwrap/expect. If you were matching on the returning
Error enum, replace with the enum
ExporterBuildError
. Unlike the previousError
which contained many variants unrelated to building an exporter, thenew one returns specific variants applicable to building an exporter. Some
variants might be applicable only on select features.
Also, now unused
Error
enum is removed.Breaking
ExportConfig
'stimeout
field is now optional(Option<Duration>
)Breaking Export configuration done via code is final. ENV variables cannot be used to override the code config.
Do not use code based config, if there is desire to control the settings via ENV variables.
List of ENV variables and corresponding setting being affected by this change.
OTEL_EXPORTER_OTLP_ENDPOINT
->ExportConfig.endpoint
OTEL_EXPORTER_OTLP_TIMEOUT
->ExportConfig.timeout
open-telemetry/opentelemetry-rust (opentelemetry-proto)
v0.29.0
Compare Source
Released 2025-Mar-21
opentelemetry
dependency version to 0.29opentelemetry_sdk
dependency version to 0.29open-telemetry/opentelemetry-rust (opentelemetry-semantic-conventions)
v0.29.0
Compare Source
Released 2025-Mar-21
open-telemetry/opentelemetry-rust (opentelemetry-stdout)
v0.29.0
Compare Source
Released 2025-Mar-21
opentelemetry
dependency version to 0.29.opentelemetry_sdk
dependency version to 0.29.open-telemetry/opentelemetry-rust (opentelemetry-zipkin)
v0.29.0
Compare Source
Released 2025-Mar-21
Update
opentelemetry
dependency version to 0.29.Update
opentelemetry_sdk
dependency version to 0.29.Update
opentelemetry-http
dependency version to 0.29.Breaking The
ZipkinExporterBuilder::build()
method now returns aResult<ZipkinExporter, ExporterBuildError>
. TheExporterBuildError
enumlists possible failures specific to the Zipkin exporter and was renamed from
opentelemetry_zipkin::Error
. Previously, this method returned aTraceError
from the
opentelemetry_sdk
crate, which was unrelated to Zipkin builderfailures.
2839
open-telemetry/opentelemetry-rust (opentelemetry_sdk)
v0.29.0
Compare Source
Released 2025-Mar-21
opentelemetry
dependency to 0.29.opentelemetry-http
dependency to 0.29.Runtime
trait has been simplified and refined. See the #2641for the changes.
async-std
support forRuntime
, asasync-std
crate is deprecated.MeterProviderBuilder::with_resource
,TracerProviderBuilder::with_resource
,LoggerProviderBuilder::with_resource
are now additive (#2677).ExportError
trait fromopentelemetry::trace::ExportError
toopentelemetry_sdk::export::ExportError
TraceError
enum fromopentelemetry::trace::TraceError
toopentelemetry_sdk::trace::TraceError
TraceResult
type alias fromopentelemetry::trace::TraceResult
toopentelemetry_sdk::trace::TraceResult
force_flush()
inPushMetricExporter
synchronousSpanExporter
trait method signature:to
This affects anyone who writes custom exporters, as custom implementations of SpanExporter
should now define export as an
async fn
:Breaking The SpanExporter::export() method no longer requires a mutable reference to self.
Before:
After:
Custom exporters will need to internally synchronize any mutable state, if applicable.
Bug Fix:
BatchLogProcessor
now correctly callsshutdown
on the exporterwhen its
shutdown
is invoked.Reduced some info level logs to debug
Breaking for custom LogProcessor/Exporter authors: Changed
name
parameter from
&str
toOption<&str>
inevent_enabled
method on theLogProcessor
andLogExporter
traits.SdkLogger
no longer passes itsscope
name but instead passes the incomingname
when invokingevent_enabled
on processors.Breaking for custom LogExporter authors:
shutdown()
method inLogExporter
trait no longer requires a mutable ref toself
. If the exporterneeds to mutate state, it should rely on interior mutability.
2764
Breaking (Affects custom Exporter/Processor authors only) Removed
opentelelemetry_sdk::logs::error::{LogError, LogResult}
. These were notintended to be public. If you are authoring custom processor/exporters, use
opentelemetry_sdk::error::OTelSdkError
andopentelemetry_sdk::error::OTelSdkResult
.2790
Breaking for custom
LogProcessor
authors: Changedset_resource
to require mutable ref.
fn set_resource(&mut self, _resource: &Resource) {}
Breaking: InMemoryExporter's return type change.
TraceResult<Vec<SpanData>>
toResult<Vec<SpanData>, InMemoryExporterError>
MetricResult<Vec<ResourceMetrics>>
toResult<Vec<ResourceMetrics>, InMemoryExporterError>
LogResult<Vec<LogDataWithResource>>
toResult<Vec<LogDataWithResource>, InMemoryExporterError>
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.