-
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
Start a CONSUMER span for Kafka poll(); and refactor spring-kafka... #4041
Start a CONSUMER span for Kafka poll(); and refactor spring-kafka... #4041
Conversation
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.
I think it would be nice if we can avoid releasing in the intermediate state where we are creating disjointed consumer spans
...1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kafkaclients/Timer.java
Outdated
Show resolved
Hide resolved
...t/src/main/java/io/opentelemetry/javaagent/instrumentation/kafkaclients/ReceivedRecords.java
Outdated
Show resolved
Hide resolved
Yeah, definitely - I'll start working on the next part soon, we should definitely get it merged before the next release. |
Thanks @mateuszrzeszutek, were you able to make any progress on the next part? I think I am maybe seeing the disjointed consumer in an downstream Lightstep alpha release. |
@arm-chair does lightstep backend support links? if so you should be seeing the consumer linked to the producer. |
... so that it has 1 batch receive span + 1 batch process span. This basically implements this idea: #3922 (comment) (well, a part of it).
The process CONSUMER span is not a child of the receive CONSUMER span yet (spec says it should be) because successive CONSUMERs are suppressed; but I'm planning to introduce a new suppression strategy for consumer spans in the next PR (separate span keys for receive an process).
This PR is split into 2 commits: the first contains just
kafka-clients
changes, the second justspring-kafka
changes. Maybe that'll help reviewing it.