axum-tracing-opentelemetry
axum-tracing-opentelemetry copied to clipboard
chore(deps): update opentelemetry
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| opentelemetry (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-jaeger-propagator (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-otlp (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-proto (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-semantic-conventions (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-stdout (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry-zipkin (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| opentelemetry_sdk (source) | workspace.dependencies | minor | 0.28 -> 0.29 |
| tracing-opentelemetry | workspace.dependencies | minor | 0.29 -> 0.30 |
Release Notes
open-telemetry/opentelemetry-rust (opentelemetry)
v0.29.0
Released 2025-Mar-21
- Breaking Moved
ExportErrortrait fromopentelemetry::trace::ExportErrortoopentelemetry_sdk::export::ExportError - Breaking Moved
TraceErrorenum fromopentelemetry::trace::TraceErrortoopentelemetry_sdk::trace::TraceError - Breaking Moved
TraceResulttype alias fromopentelemetry::trace::TraceResulttoopentelemetry_sdk::trace::TraceResult - Bug Fix:
InstrumentationScopeimplementation forPartialEqandHashfixed to include Attributes also. - Breaking changes for baggage users: #2717
- Changed value type of
BaggagefromValuetoStringValue - Updated
Baggageconstants to reflect latest standard (MAX_KEY_VALUE_PAIRS- 180 -> 64,MAX_BYTES_FOR_ONE_PAIR- removed) and increased insert performance see #2284. - Align
Baggage.remove()signature with.get()to take the key as a reference Baggagecan't be retrieved from theContextdirectly anymore and needs to be accessed viacontext.baggage()with_baggage()andcurrent_with_baggage()override any existingBaggagein theContextBaggagekeys can't be empty and only allow ASCII visual chars, except"(),/:;<=>?@​[\]{}(see RFC7230, Section 3.2.6)KeyValueMetadatadoes not publicly expose its fields. This should be transparent change to the users.
- Changed value type of
- Changed
Contextto use a stack to properly handle out of order dropping ofContextGuard. This imposes a limit of65535nested contexts on a single thread. See #2378 and #1887. - Added additional
name: Option<&str>parameter to theevent_enabledmethod on theLoggertrait. 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
Released 2025-Mar-21
- Update
opentelemetrydependency version to 0.29.
open-telemetry/opentelemetry-rust (opentelemetry-otlp)
v0.29.0
Released 2025-Mar-21
-
Update
opentelemetrydependency version to 0.29 -
Update
opentelemetry_sdkdependency version to 0.29 -
Update
opentelemetry-httpdependency version to 0.29 -
Update
opentelemetry-protodependency version to 0.29 -
The
OTEL_EXPORTER_OTLP_TIMEOUT,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT,OTEL_EXPORTER_OTLP_METRICS_TIMEOUTandOTEL_EXPORTER_OTLP_LOGS_TIMEOUTare changed from seconds to miliseconds. -
Fixed
.with_headers()inHttpExporterBuilderto correctly support multiple key/value pairs. #2699 -
Fixed #2770 partially to properly handle
shutdown()when usinghttp. (tonicstill does not do proper shutdown) -
Breaking ExporterBuilder's build() method now Result with
ExporterBuildErrorbeing the Error variant. Previously it returned signal specific errors likeLogErrorfrom theopentelemetry_sdk, which are no longer part of the sdk. No changes required if you were using unwrap/expect. If you were matching on the returning Error enum, replace with the enumExporterBuildError. Unlike the previousErrorwhich contained many variants unrelated to building an exporter, the new one returns specific variants applicable to building an exporter. Some variants might be applicable only on select features. Also, now unusedErrorenum is removed. -
Breaking
ExportConfig'stimeoutfield 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.endpointOTEL_EXPORTER_OTLP_TIMEOUT->ExportConfig.timeout
open-telemetry/opentelemetry-rust (opentelemetry-proto)
v0.29.0
Released 2025-Mar-21
- Update
opentelemetrydependency version to 0.29 - Update
opentelemetry_sdkdependency version to 0.29
open-telemetry/opentelemetry-rust (opentelemetry-semantic-conventions)
v0.29.0
Released 2025-Mar-21
- Update to v1.31.0 of the semantic conventions.
open-telemetry/opentelemetry-rust (opentelemetry-stdout)
v0.29.0
Released 2025-Mar-21
- Update
opentelemetrydependency version to 0.29. - Update
opentelemetry_sdkdependency version to 0.29.
open-telemetry/opentelemetry-rust (opentelemetry-zipkin)
v0.29.0
Released 2025-Mar-21
-
Update
opentelemetrydependency version to 0.29. -
Update
opentelemetry_sdkdependency version to 0.29. -
Update
opentelemetry-httpdependency version to 0.29. -
Breaking The
ZipkinExporterBuilder::build()method now returns aResult<ZipkinExporter, ExporterBuildError>. TheExporterBuildErrorenum lists possible failures specific to the Zipkin exporter and was renamed fromopentelemetry_zipkin::Error. Previously, this method returned aTraceErrorfrom theopentelemetry_sdkcrate, which was unrelated to Zipkin builder failures. 2839
open-telemetry/opentelemetry-rust (opentelemetry_sdk)
v0.29.0
Released 2025-Mar-21
- Update
opentelemetrydependency to 0.29. - Update
opentelemetry-httpdependency to 0.29. - Breaking: The
Runtimetrait has been simplified and refined. See the #2641 for the changes. - Removed
async-stdsupport forRuntime, asasync-stdcrate is deprecated. - Calls to
MeterProviderBuilder::with_resource,TracerProviderBuilder::with_resource,LoggerProviderBuilder::with_resourceare now additive (#2677). - Moved
ExportErrortrait fromopentelemetry::trace::ExportErrortoopentelemetry_sdk::export::ExportError - Moved
TraceErrorenum fromopentelemetry::trace::TraceErrortoopentelemetry_sdk::trace::TraceError - Moved
TraceResulttype alias fromopentelemetry::trace::TraceResulttoopentelemetry_sdk::trace::TraceResult - Breaking: Make
force_flush()inPushMetricExportersynchronous - Breaking: Updated the
SpanExportertrait method signature:
fn export(&mut self, batch: Vec<SpanData>) -> BoxFuture<'static, OTelSdkResult>;
to
fn export(
&mut self,
batch: Vec<SpanData>,
) -> impl std::future::Future<Output = OTelSdkResult> + Send;
This affects anyone who writes custom exporters, as custom implementations of SpanExporter
should now define export as an async fn:
impl trace::SpanExporter for CustomExporter {
async fn export(&mut self, batch: Vec<trace::SpanData>) -> OTelSdkResult {
// Implementation here
}
}
-
Breaking The SpanExporter::export() method no longer requires a mutable reference to self. Before:
async fn export(&mut self, batch: Vec<SpanData>) -> OTelSdkResultAfter:
async fn export(&self, batch: Vec<SpanData>) -> OTelSdkResultCustom exporters will need to internally synchronize any mutable state, if applicable.
-
Bug Fix:
BatchLogProcessornow correctly callsshutdownon the exporter when itsshutdownis invoked. -
Reduced some info level logs to debug
-
Breaking for custom LogProcessor/Exporter authors: Changed
nameparameter from&strtoOption<&str>inevent_enabledmethod on theLogProcessorandLogExportertraits.SdkLoggerno longer passes itsscopename but instead passes the incomingnamewhen invokingevent_enabledon processors. -
Breaking for custom LogExporter authors:
shutdown()method inLogExportertrait no longer requires a mutable ref toself. If the exporter needs 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 not intended to be public. If you are authoring custom processor/exporters, useopentelemetry_sdk::error::OTelSdkErrorandopentelemetry_sdk::error::OTelSdkResult. 2790 -
Breaking for custom
LogProcessorauthors: Changedset_resourceto 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>
tokio-rs/tracing-opentelemetry (tracing-opentelemetry)
v0.30.0
Breaking Changes
- Upgrade from opentelemetry 0.28.0 to 0.29.0. Refer to the upstream changelog for more information.
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
🦙 MegaLinter status: ✅ SUCCESS
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ EDITORCONFIG | editorconfig-checker | 11 | 0 | 0 | 0.03s | |
| ✅ REPOSITORY | checkov | yes | no | no | 10.39s | |
| ✅ REPOSITORY | dustilock | yes | no | no | 0.0s | |
| ✅ REPOSITORY | gitleaks | yes | no | no | 0.25s | |
| ✅ REPOSITORY | git_diff | yes | no | no | 0.01s | |
| ✅ REPOSITORY | grype | yes | no | no | 20.14s | |
| ✅ REPOSITORY | secretlint | yes | no | no | 0.7s | |
| ✅ REPOSITORY | syft | yes | no | no | 0.93s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 0.07s | |
| ✅ REPOSITORY | trufflehog | yes | no | no | 2.39s |
See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
