Xuanwo opened a new pull request, #8760: URL: https://github.com/apache/opendal/pull/8760
# Which issue does this PR close? Split out from #8705. This PR does not close #8705; the unrelated updates in that PR are handled separately. # Rationale for this change The OpenTelemetry crates are released and versioned as one family. Keeping this upgrade isolated makes its API and dependency impact reviewable without the unrelated updates bundled by #8705. # What changes are included in this PR? - Upgrade `opentelemetry` 0.32.0 -> 0.33.1, `opentelemetry_sdk` 0.32.1 -> 0.33.1, and `opentelemetry-otlp` 0.32.0 -> 0.33.1. - Upgrade `tracing-opentelemetry` 0.33.0 -> 0.34.0. - Refresh `core/Cargo.lock` for the OpenTelemetry family. - Add an unreleased breaking-change note to `core/core/src/docs/upgrade.md`. The layer implementations compile and pass their tests unchanged. OpenTelemetry 0.33 keeps the metrics API stable, and the tracing changes do not affect the layers' public surface. # Are there any user-facing changes? Yes. `OtelMetricsLayerBuilder::register` publicly accepts `opentelemetry::metrics::Meter`, and `OtelTraceLayer` uses the global OpenTelemetry tracer. Callers must use OpenTelemetry 0.33 for both, otherwise the types or global providers do not match. # Breaking changes Affected packages: core Migration: - Update your direct `opentelemetry`, `opentelemetry_sdk`, and `opentelemetry-otlp` dependencies to 0.33 when using `OtelMetricsLayer`, `OtelTraceLayer`, or the `TracingLayer` OpenTelemetry examples. - A `Meter` from `opentelemetry` 0.32 no longer satisfies `OtelMetricsLayerBuilder::register`. See the new OpenTelemetry 0.33 section in `core/core/src/docs/upgrade.md`. # AI Usage Statement - Harness: pi coding agent - Model: group/deepseek - Effort: max - Role: inspected #8705, applied the dependency and lockfile updates, added the upgrade note, and ran the focused tests, clippy, formatting, dependency, and lint checks. The human contributor remains responsible for the change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
