-
Notifications
You must be signed in to change notification settings - Fork 867
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
Implement vertx-kafka-client instrumentation; batch processing #5982
Implement vertx-kafka-client instrumentation; batch processing #5982
Conversation
@mateuszrzeszutek heads up I rebased this after merging #5973 |
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.
Batch processing in Vertx Kafka is a bit strange, you have to set up both batch handler and the regular handler and just make the regular one do nothing (e.g. https://github.com/vert-x3/vertx-kafka-client/blob/4.2/src/test/java/io/vertx/kafka/client/tests/ConsumerTestBase.java#L1281-L1303). We'll get both batch and single record telemetry this way, but that's probably fine I guess?
that is strange, oh well, I'm ok with this behavior, can always revisit
...pentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java
Outdated
Show resolved
Hide resolved
…n/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java Co-authored-by: Trask Stalnaker <[email protected]>
…telemetry#5982) * Implement vertx-kafka-client instrumentation; batch processing * try-finally just in case * Add to supported libraries list * Update instrumentation/vertx/vertx-kafka-client-3.6/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java Co-authored-by: Trask Stalnaker <[email protected]> Co-authored-by: Trask Stalnaker <[email protected]>
Waiting for #5973Resolves #1890 (issue was specifically about context propagation in vertx kafka)
Batch processing in Vertx Kafka is a bit strange, you have to set up both batch handler and the regular handler and just make the regular one do nothing (e.g. https://github.com/vert-x3/vertx-kafka-client/blob/4.2/src/test/java/io/vertx/kafka/client/tests/ConsumerTestBase.java#L1281-L1303). We'll get both batch and single record telemetry this way, but that's probably fine I guess?