Skip to content

Upgrade OpenTelemetry libraries to 1.61.0 / 2.27.0#4773

Merged
merlimat merged 3 commits into
apache:masterfrom
lhotari:lh-upgrade-otel-1.61.0
May 4, 2026
Merged

Upgrade OpenTelemetry libraries to 1.61.0 / 2.27.0#4773
merlimat merged 3 commits into
apache:masterfrom
lhotari:lh-upgrade-otel-1.61.0

Conversation

@lhotari
Copy link
Copy Markdown
Member

@lhotari lhotari commented May 4, 2026

Summary

  • Bump OpenTelemetry dependencies: opentelemetry-java 1.56.0 → 1.61.0, opentelemetry-java-instrumentation 2.21.0 → 2.27.0, semantic-conventions-java 1.37.0 → 1.41.0, opentelemetry-java-contrib 1.52.0 → 1.56.0.
  • Migrate OtelMetricsProvider off the opentelemetry-runtime-telemetry-java8 per-observer classes (Classes, Cpu, GarbageCollector, MemoryPools, Threads, ExperimentalBufferPools) — they were deprecated in 2.25.0, made internal in 2.26.0, and removed in 2.27.0 — to the unified opentelemetry-runtime-telemetry module's RuntimeTelemetry builder. Experimental buffer-pool metrics and GC-cause attribute capture are preserved.
  • Replace the Aggregation.explicitBucketHistogram(List<Double>) overload deprecated in opentelemetry-java SDK 1.60.0 with the new ExplicitBucketHistogramOptions form.

Test plan

  • mvn -pl stats/bookkeeper-stats-providers/otel-metrics-provider -am compile succeeds with no deprecation warnings
  • CI passes
  • Smoke-test JVM metrics export with the new RuntimeTelemetry to confirm memory pools, classes, CPU, threads, GC (with cause) and buffer pools are still emitted

lhotari added 2 commits May 4, 2026 20:18
…togramOptions

The runtime-telemetry-java8 module's individual observer classes (Classes,
Cpu, GarbageCollector, MemoryPools, Threads, ExperimentalBufferPools) were
removed in opentelemetry-instrumentation 2.27.0; switch to the unified
opentelemetry-runtime-telemetry module's RuntimeTelemetry builder.

Also replace the Aggregation.explicitBucketHistogram(List<Double>) overload
deprecated in opentelemetry-java SDK 1.60.0 with the new
ExplicitBucketHistogramOptions form.
@lhotari
Copy link
Copy Markdown
Member Author

lhotari commented May 4, 2026

Similar upgrade in Pulsar: apache/pulsar#25662

@lhotari lhotari requested a review from merlimat May 4, 2026 18:15
@lhotari lhotari added this to the 4.18.0 milestone May 4, 2026
@merlimat merlimat merged commit 0b7cc3d into apache:master May 4, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants