Aspnetcore

ASP.NET Core Attributes

ASP.NET Core attributes

AttributeTypeDescriptionExamplesStability
aspnetcore.authentication.resultstringThe result of the authentication operation.success; failureDevelopment
aspnetcore.authentication.schemestringThe identifier that names a particular authentication handler.Cookies; Bearer; Identity.ApplicationDevelopment
aspnetcore.authorization.policystringThe name of the authorization policy.RequireAdminRoleDevelopment
aspnetcore.authorization.resultstringThe result of calling the authorization service.success; failureDevelopment
aspnetcore.diagnostics.exception.resultstringASP.NET Core exception middleware handling result.handled; unhandledStable
aspnetcore.diagnostics.handler.typestringFull type name of the IExceptionHandler implementation that handled the exception.Contoso.MyHandlerStable
aspnetcore.identity.error_codestringThe error code for a failed identity operation.DefaultError; PasswordMismatchDevelopment
aspnetcore.identity.password_check_resultstringThe result from checking the password.success; failureDevelopment
aspnetcore.identity.resultstringThe result of the identity operation.success; failureDevelopment
aspnetcore.identity.sign_in.resultstringWhether the sign in result was success or failure.password; two_factorDevelopment
aspnetcore.identity.sign_in.typestringThe authentication type.password; two_factorDevelopment
aspnetcore.identity.token_purposestringWhat the token will be used for.success; failureDevelopment
aspnetcore.identity.token_verifiedstringThe result of token verification.success; failureDevelopment
aspnetcore.identity.user.update_typestringThe user update type.update; user_name; reset_passwordDevelopment
aspnetcore.identity.user_typestringThe full name of the identity user type.Contoso.ContosoUserDevelopment
aspnetcore.memory_pool.ownerstringThe name of the library or subsystem using the memory pool instance.kestrel; iisDevelopment
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.sign_in.is_persistentbooleanA flag indicating whether the sign in is persistent.Development
aspnetcore.user.is_authenticatedbooleanA value that indicates whether the user is authenticated.trueStable

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