HTTP spans are duplicated if auto-instumentation in OpenTelemetry is enabled #19573
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.
Monitor
Monitor, Monitor Ingestion, Monitor Query
OpenTelemetry
OpenTelemetry instrumentation (not Monitor-specific)
Describe the bug
Http spans are tracked by Azure SDK and OTel auto-collector
To Reproduce
Expected behavior
Only one HTTP span is tracked
Solution
[Update]: does not currently work: below solution requires taking a dependency on
opentelemetry-instrumentation
.Please put the suppress_instrumentation key on the context to suppress auto-instrumentation when creating HTTP span here.
Value should be
true
. Please investigate iffalse
needs to be populated after http span ends (i.e. if context leaks to other requests).Additional context
Please try to repro and make sure it's fixed.
More context: open-telemetry/opentelemetry-specification#1767
Full example:
The text was updated successfully, but these errors were encountered: