30 Dec 2019
03:00 PM
- last edited on
17 May 2021
11:02 AM
by
MaciejNeumann
I have an architecture which consists of producers and consumers with a Kafka broker in the middle. I have enabled the Dynatrace Kafka plugin which has provided some great additional information on monitoring the broker itself.
The current issue is the trace gets lost when a message is published to Kafka. I would like to the ability to see trace from a producer to a consumer in the service flow.
Does Dynatrace support this out of the box or is there some additional configuration required? I would like to hear if anyone has implemented something similar.
Solved! Go to Solution.
It’s not supported at all right now. I don’t know if there is any option to develop such tracing using current development tools we have. You can post a RFE for such case.
Sebastian
@Sebastian K. Thanks for the quick response!
Complete lack of knowledge on Dynatrace, would it be possible to instrument the client with code to push the tace data to one agent or through the Dynatrace server api?
Problem with instrumenting kafka would be overhead. This soft is processing massive amount of fast requests. What should be done is detecting somehow communicates that are going to Kafka and returining from them. I don't know if this is possible but this is how Dynatrace is for example tagging messages that are going through IBM Integration bus. There is SDK for tagging MQ requests for unsupported bus, but this will not work for Kafka I suppose (different type of communication). This is something Dynatrace should do (if this is possible). This is why I suggested produce idea.
Sebastian
I think the Kafka support was mentioned by @Andreas G. in one of the recent performance clinics (I just don't remember which one).
Last time I checked it was not generally available but I think it was being worked on since I've seen Kafka tracing code in oneagent java libraries.
Just found it, seems to be an early access program (probably not public yet).
See video at the 40:07 mark.
Cool! thx for info
Here's description how to configure Kafka consumer to detect flows across Kafka messaging system
https://www.dynatrace.com/support/help/how-to-use-dynatrace/transactions-and-services/configuration/...
Hi
Here's description how to configure Kafka consumer to detect flows across Kafka messaging system
https://www.dynatrace.com/support/help/how-to-use-dynatrace/transactions-and-services/configuration/...
Hi Janusz,
Thanks for the link - https://www.dynatrace.com/support/help/platform-modules/applications-and-microservices/services/serv.... I was going through this and made the code changes as per the sample given in node.js tab. But, while configuring the settings at Dynatrace, after selecting the handler file, Dynatrace is unable to find the method and then we are not able to move forward. Do you have any idea and help us how to move forward from here ?