Skip to content

Conversation

@adhraj12
Copy link

Description

Resolves #3111.

The automq-metrics module enables the OTLP HTTP exporter but fails to provide a concrete HTTP sender implementation, leading to a crash on startup when OTLP is enabled. The opentelemetry-exporter-otlp artifact does not include a sender by default and expects one to be available on the classpath.

This PR:

  • Adds io.opentelemetry:opentelemetry-exporter-sender-jdk:1.40.0 to project dependencies.
  • Injects this dependency into the automq-metrics module to utilize the native JDK 17 HttpClient.

Testing Strategy

  • Build Verification: Ran ./gradlew :automq-metrics:jar to ensure successful compilation.
  • Dependency Verification: Verified that opentelemetry-exporter-sender-jdk is present in the runtime classpath of automq-metrics.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

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.

[BUG] Kafka broker fails to start when enabling OTLP HTTP metrics exporter

1 participant