-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
http.client.request.duration's error.type contains Exception.Name for cases which do not map to HttpRequestError values, which is inconsistent with aspnet's implementation that reports Exception.FullName -- see dotnet/aspnetcore#51084.
The wording of the .NET Metrics spec, is somewhat ambivalent:
When error.type attribute is reported, it contains one of HTTP Request errors, a full exception type, or a string representation of received status code.
As #93254 (comment) pointed out, this could also mean to "use HttpRequestException instead of just 'Http' or 'HttpException'". Moreover, reporting the full name doesn't bring any value, the set of exceptions we can see here is limited, collisions are not expected.
I assume this is not the case with aspnet, where exceptions may come from an arbitrarily large set. My recommendation would be to leave and document the current behaviors as-is.