Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the built-in diagnostics metrics for ASP.NET Core produced using the System.Diagnostics.Metrics API. These metrics report diagnostics information from the ASP.NET Core error handling middleware.
For an overview of all built-in metrics reference pages and how to read this reference, see ASP.NET Core built-in metrics. For information on how to collect, report, enrich, and test with ASP.NET Core metrics, see ASP.NET Core metrics.
Microsoft.AspNetCore.Diagnostics
The Microsoft.AspNetCore.Diagnostics metrics report diagnostics information from ASP.NET Core error handling middleware:
Metric: aspnetcore.diagnostics.exceptions
| Name | Instrument Type | Unit (UCUM) | Description |
|---|---|---|---|
aspnetcore.diagnostics.exceptions |
Counter | {exception} |
Number of exceptions caught by exception handling middleware. |
| Attribute | Type | Description | Examples | Presence |
|---|---|---|---|---|
aspnetcore.diagnostics.exception.result |
string | ASP.NET Core exception middleware handling result. | handled; unhandled |
Always |
aspnetcore.diagnostics.handler.type |
string | Full type name of the IExceptionHandler implementation that handled the exception. |
Contoso.MyHandler |
If the exception was handled by this handler. |
exception.type |
string | The full name of exception type. | System.OperationCanceledException; Contoso.MyException |
Always |
See also
ASP.NET Core