-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Routing, exception and hosting metrics #48670
Labels
api-approved
API was approved in API review, it can be implemented
area-hosting
Includes Hosting
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Comments
JamesNK
added
area-runtime
api-approved
API was approved in API review, it can be implemented
area-hosting
Includes Hosting
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
api-ready-for-review
API is ready for formal API review - https://github.com/dotnet/apireviews
and removed
api-approved
API was approved in API review, it can be implemented
labels
Jun 8, 2023
Thank you for submitting this for API review. This will be reviewed by @dotnet/aspnet-api-review at the next meeting of the ASP.NET Core API Review group. Please ensure you take a look at the API review process documentation and ensure that:
|
API Review Notes:
API Approved! Microsoft.AspNetCore.Routing
|
Name | Instrument Type | Unit | Description |
---|---|---|---|
routing-match-success |
Counter | {count} |
Number of requests successfully matched to an endpoint by routing. |
Attribute | Type | Description | Examples | Presence |
---|---|---|---|---|
route |
string | The matched route | {controller}/{action}/{id?} |
Required |
fallback |
bool | A flag indicating whether the matched route is a fallback route | true |
Required |
routing-match-failure
Name | Instrument Type | Unit | Description |
---|---|---|---|
routing-match-failure |
Counter | {count} |
Number of requests that failed to match to an endpoint by routing. |
Microsoft.AspNetCore.Diagnostics
diagnostics-handler-exception
Name | Instrument Type | Unit | Description |
---|---|---|---|
diagnostics-handler-exception |
Counter | {count} |
Number of request exceptions caught by exception handling middleware. |
Attribute | Type | Description | Examples | Presence |
---|---|---|---|---|
exception-name |
string | Name of the .NET exception thrown during the request. | Required | |
result |
string | The result of exception handler. | Skipped, Handled, Unhandled, Aborted | Required |
handler |
string | The name of the .NET type that handled the exception. | MyNamespace.MyCustomExceptionHandler | Present if exception handled by IExceptionHandler or IProblemDetailsService . |
Microsoft.AspNetCore.Hosting
http-server-unhandled-requests
Name | Instrument Type | Unit | Description |
---|---|---|---|
http-server-unhandled-requests |
Counter | {count} |
Number of HTTP requests that reached the end of the middleware pipeline without being handled by application code. |
halter73
added
api-approved
API was approved in API review, it can be implemented
and removed
api-ready-for-review
API is ready for formal API review - https://github.com/dotnet/apireviews
labels
Jun 8, 2023
This was referenced Jun 9, 2023
Merged
ghost
locked as resolved and limited conversation to collaborators
Jul 10, 2023
amcasey
added
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
and removed
area-runtime
labels
Aug 25, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
api-approved
API was approved in API review, it can be implemented
area-hosting
Includes Hosting
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Background and Motivation
This is a collection of useful metrics identified by customers. Combined together
Proposed API
Microsoft.AspNetCore.Routing
routing-match-success
routing-match-success
{count}
route
{controller}/{action}/{id?}
fallback
true
routing-match-failure
routing-match-failure
{count}
Microsoft.AspNetCore.Diagnostic
diagnostics-handler-exception
diagnostics-handler-exception
{count}
exception-name
result
handler
IExceptionHandler
orIProblemDetailsService
.Microsoft.AspNetCore.Hosting
http-server-unhandled-requests
http-server-unhandled-requests
{count}
Usage Examples
Alternative Designs
Risks
The text was updated successfully, but these errors were encountered: