# Aspnetcore ## ASP.NET Core Attributes ASP.NET Core attributes | Attribute | Type | Description | Examples | Stability | |---|---|---|---|---| | `aspnetcore.authentication.result` | string | The result of the authentication operation. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.authentication.scheme` | string | The identifier that names a particular authentication handler. | `Cookies`; `Bearer`; `Identity.Application` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.authorization.policy` | string | The name of the authorization policy. | `RequireAdminRole` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.authorization.result` | string | The result of calling the authorization service. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.diagnostics.exception.result` | string | ASP.NET Core exception middleware handling result. | `handled`; `unhandled` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.diagnostics.handler.type` | string | Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) implementation that handled the exception. | `Contoso.MyHandler` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.identity.error_code` | string | The error code for a failed identity operation. | `DefaultError`; `PasswordMismatch` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.password_check_result` | string | The result from checking the password. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.result` | string | The result of the identity operation. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.sign_in.result` | string | Whether the sign in result was success or failure. | `password`; `two_factor` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.sign_in.type` | string | The authentication type. | `password`; `two_factor` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.token_purpose` | string | What the token will be used for. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.token_verified` | string | The result of token verification. | `success`; `failure` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.user.update_type` | string | The user update type. | `update`; `user_name`; `reset_password` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.identity.user_type` | string | The full name of the identity user type. | `Contoso.ContosoUser` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.memory_pool.owner` | string | The name of the library or subsystem using the memory pool instance. | `kestrel`; `iis` | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.rate_limiting.policy` | string | Rate limiting policy name. | `fixed`; `sliding`; `token` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.rate_limiting.result` | string | Rate-limiting result, shows whether the lease was acquired or contains a rejection reason | `acquired`; `request_canceled` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.request.is_unhandled` | boolean | Flag indicating if request was handled by the application pipeline. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.routing.is_fallback` | boolean | A value that indicates whether the matched route is a fallback route. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.routing.match_status` | string | Match result - success or failure | `success`; `failure` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `aspnetcore.sign_in.is_persistent` | boolean | A flag indicating whether the sign in is persistent. | | ![Development](https://img.shields.io/badge/-development-blue) | | `aspnetcore.user.is_authenticated` | boolean | A value that indicates whether the user is authenticated. | `true` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | --- `aspnetcore.authentication.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. | Value | Description | Stability | |---|---|---| | `failure` | Authentication failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `none` | No authentication information returned. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Authentication was successful. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.authorization.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. | Value | Description | Stability | |---|---|---| | `failure` | Authorization failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Authorization was successful. | ![Development](https://img.shields.io/badge/-development-blue) | --- `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. | Value | Description | Stability | |---|---|---| | `aborted` | Exception handling didn't run because the request was aborted. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `handled` | Exception was handled by the exception handling middleware. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `skipped` | Exception handling was skipped because the response had started. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `unhandled` | Exception was not handled by the exception handling middleware. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | --- `aspnetcore.identity.password_check_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. | Value | Description | Stability | |---|---|---| | `failure` | Password check failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `password_missing` | Password check couldn't proceed because the password was missing from the user. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Password check was successful. | ![Development](https://img.shields.io/badge/-development-blue) | | `success_rehash_needed` | Password check was successful however the password was encoded using a deprecated algorithm and should be rehashed and updated. | ![Development](https://img.shields.io/badge/-development-blue) | | `user_missing` | Password check couldn't proceed because the user was missing. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.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. | Value | Description | Stability | |---|---|---| | `failure` | Identity operation failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Identity operation was successful. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.sign_in.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. | Value | Description | Stability | |---|---|---| | `failure` | Sign in failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `locked_out` | User is locked out. | ![Development](https://img.shields.io/badge/-development-blue) | | `not_allowed` | User is not allowed to sign in. | ![Development](https://img.shields.io/badge/-development-blue) | | `requires_two_factor` | User requires two factory authentication to sign in. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Sign in was successful. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.sign_in.type` 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. | Value | Description | Stability | |---|---|---| | `external` | Sign in with a previously registered third-party login. | ![Development](https://img.shields.io/badge/-development-blue) | | `passkey` | Sign in with passkey. | ![Development](https://img.shields.io/badge/-development-blue) | | `password` | Sign in with password. | ![Development](https://img.shields.io/badge/-development-blue) | | `two_factor` | Sign in with a two factor provider. | ![Development](https://img.shields.io/badge/-development-blue) | | `two_factor_authenticator` | Sign in with two factor authenticator app. | ![Development](https://img.shields.io/badge/-development-blue) | | `two_factor_recovery_code` | Sign in with two factory recovery code. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.token_purpose` 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. | Value | Description | Stability | |---|---|---| | `_OTHER` | Any token purpose that the instrumentation has no prior knowledge of. | ![Development](https://img.shields.io/badge/-development-blue) | | `change_email` | The token is for changing the user email address. | ![Development](https://img.shields.io/badge/-development-blue) | | `change_phone_number` | The token is for changing a user phone number. | ![Development](https://img.shields.io/badge/-development-blue) | | `email_confirmation` | The token is for confirming user email address. | ![Development](https://img.shields.io/badge/-development-blue) | | `reset_password` | The token is for resetting a user password. | ![Development](https://img.shields.io/badge/-development-blue) | | `two_factor` | The token is for changing user two factor settings. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.token_verified` 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. | Value | Description | Stability | |---|---|---| | `failure` | Token verification failed. | ![Development](https://img.shields.io/badge/-development-blue) | | `success` | Token verification was successful. | ![Development](https://img.shields.io/badge/-development-blue) | --- `aspnetcore.identity.user.update_type` 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. | Value | Description | Stability | |---|---|---| | `_OTHER` | Any update type that the instrumentation has no prior knowledge of. | ![Development](https://img.shields.io/badge/-development-blue) | | `access_failed` | Identity user access failure recorded. | ![Development](https://img.shields.io/badge/-development-blue) | | `add_claims` | Identity user claims added. | ![Development](https://img.shields.io/badge/-development-blue) | | `add_login` | Identity user login added. | ![Development](https://img.shields.io/badge/-development-blue) | | `add_password` | Identity user password added. | ![Development](https://img.shields.io/badge/-development-blue) | | `add_to_roles` | Identity user added to roles. | ![Development](https://img.shields.io/badge/-development-blue) | | `change_email` | Identity user email changed. | ![Development](https://img.shields.io/badge/-development-blue) | | `change_password` | Identity user password changed. | ![Development](https://img.shields.io/badge/-development-blue) | | `change_phone_number` | Identity user phone number changed. | ![Development](https://img.shields.io/badge/-development-blue) | | `confirm_email` | Identity user email confirmed. | ![Development](https://img.shields.io/badge/-development-blue) | | `generate_new_two_factor_recovery_codes` | Identity user new two-factor recovery codes generated. | ![Development](https://img.shields.io/badge/-development-blue) | | `password_rehash` | Identity user password rehashed. | ![Development](https://img.shields.io/badge/-development-blue) | | `redeem_two_factor_recovery_code` | Identity user two-factor recovery code redeemed. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_authentication_token` | Identity user authentication token removed. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_claims` | Identity user claims removed. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_from_roles` | Identity user removed from roles. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_login` | Identity user login removed. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_passkey` | Identity user passkey removed. | ![Development](https://img.shields.io/badge/-development-blue) | | `remove_password` | Identity user password removed. | ![Development](https://img.shields.io/badge/-development-blue) | | `replace_claim` | Identity user claim replaced. | ![Development](https://img.shields.io/badge/-development-blue) | | `reset_access_failed_count` | Identity user access failure count reset. | ![Development](https://img.shields.io/badge/-development-blue) | | `reset_authenticator_key` | Identity user authenticator key reset. | ![Development](https://img.shields.io/badge/-development-blue) | | `reset_password` | Identity user password reset. | ![Development](https://img.shields.io/badge/-development-blue) | | `security_stamp` | Identity user security stamp updated. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_authentication_token` | Identity user authentication token set. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_email` | Identity user email set. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_lockout_enabled` | Identity user lockout enabled or disabled. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_lockout_end_date` | Identity user lockout end date set. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_passkey` | Identity user passkey set. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_phone_number` | Identity user phone number set. | ![Development](https://img.shields.io/badge/-development-blue) | | `set_two_factor_enabled` | Identity user two-factor authentication enabled or disabled. | ![Development](https://img.shields.io/badge/-development-blue) | | `update` | Identity user updated. | ![Development](https://img.shields.io/badge/-development-blue) | | `user_name` | Identity user name updated. | ![Development](https://img.shields.io/badge/-development-blue) | --- `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. | Value | Description | Stability | |---|---|---| | `acquired` | Lease was acquired | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `endpoint_limiter` | Lease request was rejected by the endpoint limiter | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `global_limiter` | Lease request was rejected by the global limiter | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `request_canceled` | Lease request was canceled | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | --- `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. | Value | Description | Stability | |---|---|---| | `failure` | Match failed | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `success` | Match succeeded | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |