azure-functions-kafka-extension icon indicating copy to clipboard operation
azure-functions-kafka-extension copied to clipboard

Using Application Insights Tracing

Open fsnader opened this issue 3 years ago • 6 comments

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.

fsnader avatar Oct 14 '21 18:10 fsnader

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?

TsuyoshiUshio avatar Oct 18 '21 00:10 TsuyoshiUshio

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.

fsnader avatar Oct 28 '21 13:10 fsnader

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?

TsuyoshiUshio avatar Oct 28 '21 18:10 TsuyoshiUshio

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 ?

GeoSiciliano avatar Feb 18 '22 17:02 GeoSiciliano

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

ivanthelad avatar Mar 15 '22 15:03 ivanthelad

Team, any updates on this?

eric-gonzalez-tfs avatar Oct 19 '23 00:10 eric-gonzalez-tfs