EventHubs: if received message does not have trace context, spans are not created #25182
Labels
Client
This issue points to a problem in the data-plane of the library.
Event Hubs
OpenTelemetry
OpenTelemetry instrumentation
Describe the bug
If EventHubs message does not have diagnositc-id in properties, spans are not created
azure-sdk-for-java/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/PartitionPumpManager.java
Line 370 in f48ebe8
To Reproduce
Send event from non-instrumented producer
Code Snippet
e.g. eventhub spring binder
Expected behavior
Process span should be created regardless of diagnosticId is present or not (as you might want to monitor consumer even if you don't own or monitor producer)
The text was updated successfully, but these errors were encountered: