Is there a list of trace context propagators that the Java client supports? #3860
-
I'm looking for documentation that lists the various ways that the Java client can propagate trace context (HTTP, GRPC, ??). In particular I'm wondering if it automatically propagates through Kafka. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We don't have that documented because we (usually) implement context propagation in all libraries that we instrument - you can assume that all HTTP/PRC/messaging libs listed here propagate context properly. Kafka, however, is a know source of context propagation problems 😅 Because of its poll-based consumer API it's pretty hard to correctly wrap a CONSUMER span around message processing, and depending on the way you're using it you might or might not get your context propagated correctly. If you're able to, please try the agent out - and if you find any context propagation issues with Kafka, don't hesitate to create a bug and attach an example of how you use the Kafka consumer. |
Beta Was this translation helpful? Give feedback.
We don't have that documented because we (usually) implement context propagation in all libraries that we instrument - you can assume that all HTTP/PRC/messaging libs listed here propagate context properly.
Kafka, however, is a know source of context propagation problems 😅 Because of its poll-based consumer API it's pretty hard to correctly wrap a CONSUMER span around message processing, and depending on the way you're using it you might or might not get your context propagated correctly. If you're able to, please try the agent out - and if you find any context propagation issues with Kafka, don't hesitate to create a bug and attach an example of how you use the Kafka consumer.