azure-functions-kafka-extension
azure-functions-kafka-extension copied to clipboard
Using Application Insights Tracing
Hi guys, Do you know if is there any way to enable Azure Application Insights tracing propagation when using Kafka input and output bindings? I tried to find something in the docs, but couldn't find anything.
Hi @Fsnader What would you want to get the logs? Do you want distributed tracing with Kafka Trigger/Output? If so, which protocol do you need? HttpCorrelation context or W3C trace context? opentelemetry or not the distributed tracing?
Yes @TsuyoshiUshio, I'm looking for the distributed tracing.
In EventHub.Extensions, for example, when we produce/consume an even, the Function automatically injects/extracts a System.Diagnostics activity using a "Diagnostic-Id" header, and Azure Application Insights can automatically generate the distributed tracing.
I think something similar (at least as an extension) would be interesting, considering that Azure Application Insights is the "default" APM tool for Azure Functions.
Hi @fsnader That makes sense. Thank you for sharing. @pragnagopa and @apawast I think this enhancement makes sense. Do you know who is organizing priority?
Hey there! Was looking at this issue, and want something like that on the project. Is this possible now or maybe a workaround is available ?
this changes should take the following scenarios into account
• Take into account kafka events that already have a "traceparent" set in the message header. • Take into end to end tracing when the outputbinding is used. (ideally this would result in end to end tracing similar the java agent generates ) output binding. • Today, the application maps visualizes a kafka event as a simple request. it does show that this event came from a kafka topic. The kafka extension should be able to visualize the input of an event as a kafkatopic. Similar to how the app insights java sdk can do this when it know kafka apis are used
Team, any updates on this?