Upgrade OpenTelemetry libraries to 1.61.0 / 2.27.0#4773
Merged
Conversation
…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.
Member
Author
|
Similar upgrade in Pulsar: apache/pulsar#25662 |
2 tasks
merlimat
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
opentelemetry-java1.56.0 → 1.61.0,opentelemetry-java-instrumentation2.21.0 → 2.27.0,semantic-conventions-java1.37.0 → 1.41.0,opentelemetry-java-contrib1.52.0 → 1.56.0.OtelMetricsProvideroff theopentelemetry-runtime-telemetry-java8per-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 unifiedopentelemetry-runtime-telemetrymodule'sRuntimeTelemetrybuilder. Experimental buffer-pool metrics and GC-cause attribute capture are preserved.Aggregation.explicitBucketHistogram(List<Double>)overload deprecated in opentelemetry-java SDK 1.60.0 with the newExplicitBucketHistogramOptionsform.Test plan
mvn -pl stats/bookkeeper-stats-providers/otel-metrics-provider -am compilesucceeds with no deprecation warningsRuntimeTelemetryto confirm memory pools, classes, CPU, threads, GC (with cause) and buffer pools are still emitted