[BUG] Why Are the Traces for Multiple Service Bus Messages Correlated Under Same Operation ID in Application Insights? #25479
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
OpenTelemetry
OpenTelemetry instrumentation
Service Bus
Milestone
Query/Question
As we regularly experienced issues similar to the following ones
we have implemented a periodically scheduled reconnect of the
ServiceBusProcessorClient
This reconnect looks roughly as follows
This reconnect has fixed the issues mentioned above. However, since upgrading to azure-messaging-servicebus version 7.4.1 (from 7.3.0), we have experienced a problem w.r.t. tracing in Application Insights.
Specifically, we have noticed that now the tracing data in Application Insights for all messages handled by the
ServiceBusProcessorClient
instance created by the reconnect appears in the same transaction, i.e., has the same operation ID.For example, here the handling hundreds of individual messages is all in the context of this initial
reconnect
method:Is this expected behaviour? Is there any way to fix this on our side? Or is this a bug in the SDK?
We would expect that the handling of each message has its own operation ID, i.e., is in a separate transaction. The current view makes it very hard to analyze and debug problems due to the enormous number of traces in one transaction.
Why is this not a Bug or a feature Request?
At the moment, we are unsure whether this is a bug or whether we are using the SDK in a wrong way on our side.
Setup (please complete the following information if applicable):
and applicationinsights-agent-3.2.0.jar
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: