-
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
[Http Metrics] Replace http.error.reason with OTel standard error.type #91909
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsThe This means that:
See
|
Reopening to track backport to 8.0 |
Align attribute name and semantics with the OpenTelemetry spec (which was finalized yesterday 2023/9/11 - see open-telemetry/semantic-conventions#205) --
http.error.reason
attribute has been standardized under nameerror.type
. We need to:http.error.reason
toerror.type
.error.type
also for valid responses where the HTTP status code indicates an error (4xx and 5xx) -- in such case, the value should be the string representation of the HTTP status code.http.error.reason
only when the underlying handler fails to fetch a response.See
error.type
in the spec for more details.For context: We introduced the attribute
http.error.reason
in PR #89809 (on 2023/8/3) based on the in-progress draft of the OTel spec (open-telemetry/semantic-conventions#205).Given that this is new 8.0 feature, we should adapt to the spec in 8.0 to avoid breaking changes with 9.0.
The text was updated successfully, but these errors were encountered: