-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
OTel recently defined error.type attribute as a general-purpose error status. It is used on http.server.* and other metrics (open-telemetry/semantic-conventions#205).
ASP.NET Core now reports exception.type on .NET-specific metrics like (kestrel.*, aspnetcore.*) as well as common HTTP metrics.
e.g. here
| tags.Add("exception.type", exception.GetType().FullName); |
Reporting exception.type on common OTel metrics makes .NET incompatible with the OTel spec.
Expected Behavior
ASP.NET Core metrics in http.* namespace should use error.type attribute (populating full exception type on it, in the same was as today).
.NET-specific metrics can keep using exception.type or switch to exception.type.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions