-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Metrics] error.type
doesn't report Exception.FullName
#93302
Comments
Tagging subscribers to this area: @dotnet/ncl Issue Details
The wording of the .NET Metrics spec, is somewhat ambivalent:
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. @JamesNK @noahfalk we should make a decision this ASAP.
|
No opinion here, just adding a few points:
|
My preference would be to use FullName. I recognize it doesn't provide much value in terms of error disambiguation on this metric, but I do think it could provide value for consistency across metrics. If an engineer was writing queries to process metrics from different parts of .NET it would be a simpler mental model for them if the exception names reported in error.type are always FullName rather than some metrics use Name and others use FullName. |
+1 for consistency. |
Ok. Gonna add this to #93254, and raise a separate PR for the HTTP part. |
Are we saying |
@MihaZupan I considered proposing that option, but I assume ASP.NET logs @JamesNK can you elaborate on your choice of using |
Yes. A
|
http.client.request.duration
'serror.type
containsException.Name
for cases which do not map toHttpRequestError
values, which is inconsistent with aspnet's implementation that reportsException.FullName
-- see dotnet/aspnetcore#51084.The wording of the .NET Metrics spec, is somewhat ambivalent:
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.
@JamesNK @noahfalk we should make a decision ASAP.
The text was updated successfully, but these errors were encountered: