-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
url.scheme
tag is emitted as part of http.client.request.duration
metric that does not match the OTel spec
#92077
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescription
Reproduction StepsTest on .NET8.0 RC1 using OTel SDK Configure SDK Sdk.CreateMeterProviderBuilder()
.AddMeter("System.Net.Http")
.Build() Expected behavior
Actual behavior
Sample output from sdk
runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs Line 192 in f7a7b2b
Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
AFAIK the spec does not prohibit emitting additional tags. There is a proposal documentimg all .NET metrics at open-telemetry/semantic-conventions#283 where url.scheme is included as an attribute of http.client.request.duration. Do you experience any practical disadvantage from including url.scheme @vishweshbankwar? |
This issue has been marked |
Created open-telemetry/semantic-conventions#356 and proposing open-telemetry/semantic-conventions#357 to fix it on the otel side |
Closing this issue assuming the open-telemetry/semantic-conventions#356 will be merged. |
Description
url.scheme
is added by default onhttp.client.request.duration
metric fromSystem.Net.Http
. However, it is not part of the required/recommended attributes from the spec.v1.21
https://github.com/open-telemetry/semantic-conventions/blob/v1.21.0/docs/http/http-metrics.md#metric-httpclientduration
Main
https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-metrics.md#metric-httpclientrequestduration
Reproduction Steps
Test on .NET8.0 RC1 using OTel SDK
Configure SDK
Expected behavior
url.scheme
is not included by default.Actual behavior
url.scheme
tag is added by default onhttp.client.request.duration
metricSample output from sdk
runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs
Line 192 in f7a7b2b
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: