Skip to content
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

Merged

Conversation

mateuszrzeszutek
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek commented May 5, 2022

Waiting for #5973

Resolves #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?

@trask
Copy link
Member

trask commented May 5, 2022

@mateuszrzeszutek heads up I rebased this after merging #5973

@mateuszrzeszutek mateuszrzeszutek marked this pull request as ready for review May 5, 2022 19:12
@mateuszrzeszutek mateuszrzeszutek requested a review from a team as a code owner May 5, 2022 19:12
Copy link
Member

@trask trask left a 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

…n/java/io/opentelemetry/javaagent/instrumentation/vertx/kafka/v3_6/InstrumentedBatchRecordsHandler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
@mateuszrzeszutek mateuszrzeszutek merged commit 2fad192 into open-telemetry:main May 10, 2022
@mateuszrzeszutek mateuszrzeszutek deleted the vertx-kafka-batch branch May 10, 2022 10:00
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…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 <trask.stalnaker@gmail.com>

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
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.

Kafka Polling - Issue with instrumentation
2 participants