[Monitor Opentelemetry] Duplicated dependencies span when enabling azure-sdk + http instrumentation #31694
Open
1 of 6 tasks
Labels
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.
Monitor - Exporter
Monitor OpenTelemetry Exporter
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Since the migration to OpenTelemetry with
@azure/opentelemetry-instrumentation-azure-sdk
+@opentelemetry/instrumentation-http
we are seing duplicated span when an HTTP call is emitted from an azure SDK libraries :@azure/core-rest-pipeline
@opentelemetry/instrumentation-http
which offer better customisation for outgoing request (ignore or not, custom attributes from headers, .......)To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only one span should be created for an HTTP call even if he the request goes through the tracing policy. For that there is different possibilities :
@opentelemetry/instrumentation-http
is enabled@azure/opentelemetry-instrumentation-azure-sdk
should expose options to indicate if HTTP calls should be tracked or not@opentelemetry/instrumentation-http
in terms of property/status/... If that's the case we can easily ignore request emitted from Azure SDK libraries while being able to keep all features (custom span attributes, ignore some requests, ....)Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: