Skip to content

[improve][monitor][branch-4.0] Upgrade OpenTelemetry libraries#26165

Open
shibd wants to merge 3 commits into
apache:branch-4.0from
shibd:backport/otel-4.0.12
Open

[improve][monitor][branch-4.0] Upgrade OpenTelemetry libraries#26165
shibd wants to merge 3 commits into
apache:branch-4.0from
shibd:backport/otel-4.0.12

Conversation

@shibd

@shibd shibd commented Jul 9, 2026

Copy link
Copy Markdown
Member

Motivation

Backport the OpenTelemetry upgrades from #25662, #25779 and #25906 to branch-4.0.

This updates the OpenTelemetry dependencies used by Pulsar 4.0.x to include the fixes shipped in OpenTelemetry 1.62.0 and aligns the Maven build with the corresponding changes already merged on master.

Modifications

  • upgrade OpenTelemetry Java to 1.62.0
  • upgrade OpenTelemetry instrumentation to 2.28.1 and semconv to 1.41.1
  • switch pulsar-opentelemetry from opentelemetry-runtime-telemetry-java17 to opentelemetry-runtime-telemetry
  • update OpenTelemetryService to use the new RuntimeTelemetry API
  • preserve the pre-1.62.0 Prometheus exporter host default (0.0.0.0) to avoid a metrics reachability regression
  • add a test covering the Prometheus host default behavior

Verification

  • mvn -pl pulsar-opentelemetry -am -DskipTests package
  • mvn -pl pulsar-broker -am -DskipTests package

@shibd shibd marked this pull request as draft July 9, 2026 08:35
@shibd shibd changed the title [improve][monitor] Upgrade OpenTelemetry libraries [improve][monitor][branch-4.0] Upgrade OpenTelemetry libraries Jul 9, 2026
@shibd shibd marked this pull request as ready for review July 10, 2026 01:30
@shibd shibd requested review from lhotari and merlimat July 10, 2026 02:21
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.

3 participants