Aspnetcore

ASP.NET Core Attributes

ASP.NET Core attributes

AttributeTypeDescriptionExamplesStability
aspnetcore.diagnostics.exception.resultstringASP.NET Core exception middleware handling resulthandled; unhandledStable
aspnetcore.diagnostics.handler.typestringFull type name of the IExceptionHandler implementation that handled the exception.Contoso.MyHandlerStable
aspnetcore.rate_limiting.policystringRate limiting policy name.fixed; sliding; tokenStable
aspnetcore.rate_limiting.resultstringRate-limiting result, shows whether the lease was acquired or contains a rejection reasonacquired; request_canceledStable
aspnetcore.request.is_unhandledbooleanFlag indicating if request was handled by the application pipeline.trueStable
aspnetcore.routing.is_fallbackbooleanA value that indicates whether the matched route is a fallback route.trueStable
aspnetcore.routing.match_statusstringMatch result - success or failuresuccess; failureStable

aspnetcore.diagnostics.exception.result has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
abortedException handling didn’t run because the request was aborted.Stable
handledException was handled by the exception handling middleware.Stable
skippedException handling was skipped because the response had started.Stable
unhandledException was not handled by the exception handling middleware.Stable

aspnetcore.rate_limiting.result has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
acquiredLease was acquiredStable
endpoint_limiterLease request was rejected by the endpoint limiterStable
global_limiterLease request was rejected by the global limiterStable
request_canceledLease request was canceledStable

aspnetcore.routing.match_status has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

ValueDescriptionStability
failureMatch failedStable
successMatch succeededStable