Aspnetcore

ASP.NET Core Attributes

ASP.NET Core attributes

Attributes:

KeyStabilityValue TypeDescriptionExample Values
aspnetcore.authentication.resultDevelopmentstringThe result of the authentication operation.success; failure
aspnetcore.authentication.schemeDevelopmentstringThe identifier that names a particular authentication handler.Cookies; Bearer; Identity.Application
aspnetcore.authorization.policyDevelopmentstringThe name of the authorization policy.RequireAdminRole
aspnetcore.authorization.resultDevelopmentstringThe result of calling the authorization service.success; failure
aspnetcore.diagnostics.exception.resultStablestringASP.NET Core exception middleware handling result.handled; unhandled
aspnetcore.diagnostics.handler.typeStablestringFull type name of the IExceptionHandler implementation that handled the exception.Contoso.MyHandler
aspnetcore.identity.error_codeDevelopmentstringThe error code for a failed identity operation.DefaultError; PasswordMismatch
aspnetcore.identity.password_check_resultDevelopmentstringThe result from checking the password.success; failure
aspnetcore.identity.resultDevelopmentstringThe result of the identity operation.success; failure
aspnetcore.identity.sign_in.resultDevelopmentstringWhether the sign in result was success or failure.password; two_factor
aspnetcore.identity.sign_in.typeDevelopmentstringThe authentication type.password; two_factor
aspnetcore.identity.token_purposeDevelopmentstringWhat the token will be used for.success; failure
aspnetcore.identity.token_verifiedDevelopmentstringThe result of token verification.success; failure
aspnetcore.identity.user.update_typeDevelopmentstringThe user update type.update; user_name; reset_password
aspnetcore.identity.user_typeDevelopmentstringThe full name of the identity user type.Contoso.ContosoUser
aspnetcore.memory_pool.ownerDevelopmentstringThe name of the library or subsystem using the memory pool instance.kestrel; iis
aspnetcore.rate_limiting.policyStablestringRate limiting policy name.fixed; sliding; token
aspnetcore.rate_limiting.resultStablestringRate-limiting result, shows whether the lease was acquired or contains a rejection reasonacquired; request_canceled
aspnetcore.request.is_unhandledStablebooleanFlag indicating if request was handled by the application pipeline.true
aspnetcore.routing.is_fallbackStablebooleanA value that indicates whether the matched route is a fallback route.true
aspnetcore.routing.match_statusStablestringMatch result - success or failuresuccess; failure
aspnetcore.sign_in.is_persistentDevelopmentbooleanA flag indicating whether the sign in is persistent.
aspnetcore.user.is_authenticatedStablebooleanA value that indicates whether the user is authenticated.true

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.

ValueDescriptionStability
failureAuthentication failed.Development
noneNo authentication information returned.Development
successAuthentication was successful.Development

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.

ValueDescriptionStability
failureAuthorization failed.Development
successAuthorization was successful.Development

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.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.

ValueDescriptionStability
failurePassword check failed.Development
password_missingPassword check couldn’t proceed because the password was missing from the user.Development
successPassword check was successful.Development
success_rehash_neededPassword check was successful however the password was encoded using a deprecated algorithm and should be rehashed and updated.Development
user_missingPassword check couldn’t proceed because the user was missing.Development

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.

ValueDescriptionStability
failureIdentity operation failed.Development
successIdentity operation was successful.Development

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.

ValueDescriptionStability
failureSign in failed.Development
locked_outUser is locked out.Development
not_allowedUser is not allowed to sign in.Development
requires_two_factorUser requires two factory authentication to sign in.Development
successSign in was successful.Development

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.

ValueDescriptionStability
externalSign in with a previously registered third-party login.Development
passkeySign in with passkey.Development
passwordSign in with password.Development
two_factorSign in with a two factor provider.Development
two_factor_authenticatorSign in with two factor authenticator app.Development
two_factor_recovery_codeSign in with two factory recovery code.Development

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.

ValueDescriptionStability
_OTHERAny token purpose that the instrumentation has no prior knowledge of.Development
change_emailThe token is for changing the user email address.Development
change_phone_numberThe token is for changing a user phone number.Development
email_confirmationThe token is for confirming user email address.Development
reset_passwordThe token is for resetting a user password.Development
two_factorThe token is for changing user two factor settings.Development

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.

ValueDescriptionStability
failureToken verification failed.Development
successToken verification was successful.Development

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.

ValueDescriptionStability
_OTHERAny update type that the instrumentation has no prior knowledge of.Development
access_failedIdentity user access failure recorded.Development
add_claimsIdentity user claims added.Development
add_loginIdentity user login added.Development
add_passwordIdentity user password added.Development
add_to_rolesIdentity user added to roles.Development
change_emailIdentity user email changed.Development
change_passwordIdentity user password changed.Development
change_phone_numberIdentity user phone number changed.Development
confirm_emailIdentity user email confirmed.Development
generate_new_two_factor_recovery_codesIdentity user new two-factor recovery codes generated.Development
password_rehashIdentity user password rehashed.Development
redeem_two_factor_recovery_codeIdentity user two-factor recovery code redeemed.Development
remove_authentication_tokenIdentity user authentication token removed.Development
remove_claimsIdentity user claims removed.Development
remove_from_rolesIdentity user removed from roles.Development
remove_loginIdentity user login removed.Development
remove_passkeyIdentity user passkey removed.Development
remove_passwordIdentity user password removed.Development
replace_claimIdentity user claim replaced.Development
reset_access_failed_countIdentity user access failure count reset.Development
reset_authenticator_keyIdentity user authenticator key reset.Development
reset_passwordIdentity user password reset.Development
security_stampIdentity user security stamp updated.Development
set_authentication_tokenIdentity user authentication token set.Development
set_emailIdentity user email set.Development
set_lockout_enabledIdentity user lockout enabled or disabled.Development
set_lockout_end_dateIdentity user lockout end date set.Development
set_passkeyIdentity user passkey set.Development
set_phone_numberIdentity user phone number set.Development
set_two_factor_enabledIdentity user two-factor authentication enabled or disabled.Development
updateIdentity user updated.Development
user_nameIdentity user name updated.Development

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