[BUG] Duplication between Azure.Core.Http spans and HTTP client ones #37446
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
OpenTelemetry
OpenTelemetry instrumentation (not Monitor-specific)
Library name and version
Azure.Core
Describe the bug
When OTel is configured to collect HTTP spans and Azure SDK spans, we report 2 spans for each HTTP call.
Azure SDK spans are 'better' because:
x-ms-*request-id
values that are used by AzMon to correlate with server-side telemetrySo, we need to find a way to suppress native HTTP client spans.
The problem is not unique to Azure SDK, but there is no otel-wide story for it (open-telemetry/opentelemetry-specification#1767) and each language has its own way to suppress duplicates.
Here's the issue tracking it on OTel .NET side
open-telemetry/opentelemetry-dotnet#4641
Expected behavior
Only one span is created per HTTP call
Actual behavior
two spans are created per http call
Reproduction Steps
https://devblogs.microsoft.com/azure-sdk/introducing-experimental-opentelemetry-support-in-the-azure-sdk-for-net/ with latest otel
Environment
No response
The text was updated successfully, but these errors were encountered: