-
Notifications
You must be signed in to change notification settings - Fork 986
add the headers capture feature to Kafka 2.6 interceptors #14290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
...brary/src/test/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/InterceptorsTest.java
Outdated
Show resolved
Hide resolved
...main/java/io/opentelemetry/instrumentation/kafkaclients/v2_6/TracingConsumerInterceptor.java
Outdated
Show resolved
Hide resolved
instrumentation/kafka/kafka-clients/kafka-clients-2.6/metadata.yaml
Outdated
Show resolved
Hide resolved
@@ -1,2 +1,13 @@ | |||
description: > | |||
This instrumentation provides a library integeration that enables messaging spans and metrics for Apache Kafka 2.6+ clients. | |||
This instrumentation provides both library and wrapper integrations that enable messaging spans and metrics for Apache Kafka 2.6+ clients. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By library instrumentation
we mean a standalone instrumentation that can be used without the agent. wrapper integration
isn't part of our terminology. I can understand that you mean that the library offers two kind of instrumentations, one that is based on interceptors and the other one that wraps producers and consumers, but for casual reader imo this sentence does not make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laurit The word “wrapper” felt out of place since it wasn’t used anywhere in any metadata.yaml, so I agree it should be removed.
The Kafka 2.6 wrapper library currently supports the header capture feature, but the interceptors are not supported yet.
Additionally, I clarified the Kafka 2.6 metadata, adding that the Kafka 2.6 library can be accessed via either the wrapper or interceptors, and added the missing configuration options.