Skip to content

[improve][monitor][branch-4.2] Upgrade OpenTelemetry libraries#26182

Merged
shibd merged 3 commits into
apache:branch-4.2from
shibd:codex/backport-otel-branch-4.2
Jul 13, 2026
Merged

[improve][monitor][branch-4.2] Upgrade OpenTelemetry libraries#26182
shibd merged 3 commits into
apache:branch-4.2from
shibd:codex/backport-otel-branch-4.2

Conversation

@shibd

@shibd shibd commented Jul 13, 2026

Copy link
Copy Markdown
Member

Motivation

Backport #26165 to branch-4.2.

This updates the OpenTelemetry dependencies used by Pulsar 4.2.x to include the fixes shipped in OpenTelemetry 1.62.0 and aligns the branch with the corresponding changes already merged in #26165.

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
  • update bundled dependency license manifests

Verification

  • ./mvnw -pl pulsar-opentelemetry -am -DskipTests package
  • ./mvnw -pl pulsar-opentelemetry -am -Dtest=OpenTelemetryServiceTest -Dsurefire.failIfNoSpecifiedTests=false test
  • ./mvnw -pl pulsar-broker -am -DskipTests package

@shibd shibd marked this pull request as ready for review July 13, 2026 07:24
@shibd shibd merged commit 9000452 into apache:branch-4.2 Jul 13, 2026
50 of 53 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.

1 participant