Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
580 stars 738 forks source link

Distributed Tracing support #2167

Closed eedorenko closed 2 years ago

eedorenko commented 2 years ago

I have followed the guidance on distributed tracing. I have an updated iothub_ll_telemetry_sample working as expected and sending messages with tracestate property. I can see this system property in the message on the IoT Hub side. But! IoT Hub doesn't log anything under DistributedTracing category. Is this functionality still alive?

asergaz commented 2 years ago

Relates with: https://github.com/MicrosoftDocs/azure-docs/issues/84386

danewalton commented 2 years ago

Hi @eedorenko. Let me look into that. Just for my knowledge, how are you setting up the diagnostic? AKA sending it to a storage archive, stream to event hub, etc.

eedorenko commented 2 years ago

@asergaz Yes, I can see this for all messages

Screen Shot 2021-11-29 at 4 14 28 PM

I can also that the message arrives at IoT Hub and it has tracestate system property

Screen Shot 2021-11-29 at 5 19 23 PM

eedorenko commented 2 years ago

Hi @danewalton, the diagnostic is configured with "Send to Log Analytics workspace" option.

danewalton commented 2 years ago

Hi @eedorenko after asking around this is currently not in a working state. We are working to remove the documentation which you had linked. Sorry for the confusion. I'll consider this closed for now.