Skip to content

Disable kafka metrics by default in v3#18828

Merged
trask merged 4 commits into
open-telemetry:mainfrom
laurit:disable-kafka-metrics
May 26, 2026
Merged

Disable kafka metrics by default in v3#18828
trask merged 4 commits into
open-telemetry:mainfrom
laurit:disable-kafka-metrics

Conversation

@laurit
Copy link
Copy Markdown
Contributor

@laurit laurit commented May 22, 2026

Resolves #11946

@laurit laurit requested a review from a team as a code owner May 22, 2026 06:49
Copilot AI review requested due to automatic review settings May 22, 2026 06:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Disables Kafka client metrics instrumentation by default when the agent is running with the v3 preview configuration, addressing the reported risk of metric collection failures (e.g., ConcurrentModificationException) triggered by Kafka client internals.

Changes:

  • Added v3-preview-aware defaultEnabled() logic to the Kafka metrics javaagent instrumentation module.
  • Introduced configuration gating so Kafka metrics are not enabled by default under v3 preview.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@trask trask merged commit 0f6b98d into open-telemetry:main May 26, 2026
95 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.

ConcurrentModifiedException when read metrics from Kafka clients.

4 participants