Skip to content

Conversation

trask
Copy link
Member

@trask trask commented Oct 9, 2025

This PR

  • Adds OpenTelemetryConsumerInterceptor and OpenTelemetryProducerInterceptor which accept a KafkaTelemetry instance
  • Deprecates TracingConsumerInterceptor and TracingProducerInterceptor

Went with new class names since we want to get away from "Tracing*" anyways.

Fixes #6291

Supersedes #14870

Copilot AI and others added 22 commits October 3, 2025 00:56
…wards compatibility, move KafkaTelemetrySupplier

Co-authored-by: trask <[email protected]>
…src/main/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/TracingConsumerInterceptor.java
…src/main/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/TracingProducerInterceptor.java
@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a copy of the original AbstractInterceptorsTest.java, to continue testing the deprecated classes until we remove them

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a copy of the original InterceptorsSuppressReceiveSpansTest.java, to continue testing the deprecated classes until we remove them

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a copy of the original InterceptorsTest.java, to continue testing the deprecated classes until we remove them


@Test
void badConfig() {
Assumptions.assumeFalse(Boolean.getBoolean("testLatestDeps"));
Copy link
Member Author

Choose a reason for hiding this comment

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

this seems to not be needed (anymore)

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@trask trask marked this pull request as ready for review October 11, 2025 02:29
@trask trask requested a review from a team as a code owner October 11, 2025 02:29
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.

Refactor existing kafka-clients interceptors in library instrumentation

2 participants