Add http.user_agent attribute before startSpan so it's available for sampling #26988
Labels
Client
This issue points to a problem in the data-plane of the library.
OpenTelemetry
OpenTelemetry instrumentation
We had an Application Insights user try to configure sampling based on
http.user_agent
but was unsuccessful since that attribute is not added prior to starting the span (microsoft/ApplicationInsights-Java#2083 (comment))azure-sdk-for-java/sdk/core/azure-core-tracing-opentelemetry/src/main/java/com/azure/core/tracing/opentelemetry/OpenTelemetryHttpPolicy.java
Lines 124 to 127 in 31b8373
The text was updated successfully, but these errors were encountered: