AspnetcoreMetric enum

aspnetcore.* metric instruments from the OpenTelemetry semantic conventions.

Inheritance
Implemented types
Available extensions

Values

aspnetcoreAuthenticationAuthenticateDuration → const AspnetcoreMetric

The authentication duration for a request.

Stability: development

const AspnetcoreMetric('aspnetcore.authentication.authenticate.duration', SemanticInstrument.histogram, 's')
aspnetcoreAuthenticationChallenges → const AspnetcoreMetric

The total number of times a scheme is challenged.

Stability: development

const AspnetcoreMetric('aspnetcore.authentication.challenges', SemanticInstrument.counter, '{challenge}')
aspnetcoreAuthenticationForbids → const AspnetcoreMetric

The total number of times an authenticated user attempts to access a resource they are not permitted to access.

Stability: development

const AspnetcoreMetric('aspnetcore.authentication.forbids', SemanticInstrument.counter, '{forbid}')
aspnetcoreAuthenticationSignIns → const AspnetcoreMetric

The total number of times a principal is signed in with a scheme.

Stability: development

const AspnetcoreMetric('aspnetcore.authentication.sign_ins', SemanticInstrument.counter, '{sign_in}')
aspnetcoreAuthenticationSignOuts → const AspnetcoreMetric

The total number of times a principal is signed out with a scheme.

Stability: development

const AspnetcoreMetric('aspnetcore.authentication.sign_outs', SemanticInstrument.counter, '{sign_out}')
aspnetcoreAuthorizationAttempts → const AspnetcoreMetric

The total number of authorization attempts.

Stability: development

const AspnetcoreMetric('aspnetcore.authorization.attempts', SemanticInstrument.counter, '{attempt}')
aspnetcoreDiagnosticsExceptions → const AspnetcoreMetric

Number of exceptions caught by exception handling middleware.

const AspnetcoreMetric('aspnetcore.diagnostics.exceptions', SemanticInstrument.counter, '{exception}')
aspnetcoreIdentitySignInAuthenticateDuration → const AspnetcoreMetric

The duration of authenticate attempts. The authenticate metrics is recorded by sign in methods such as PasswordSignInAsync and TwoFactorSignInAsync.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.authenticate.duration', SemanticInstrument.histogram, 's')
aspnetcoreIdentitySignInCheckPasswordAttempts → const AspnetcoreMetric

The total number of check password attempts. Checks that the account is in a state that can log in and that the password is valid using the UserManager.CheckPasswordAsync method.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.check_password_attempts', SemanticInstrument.counter, '{attempt}')
aspnetcoreIdentitySignInSignIns → const AspnetcoreMetric

The total number of calls to sign in user principals.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.sign_ins', SemanticInstrument.counter, '{sign_in}')
aspnetcoreIdentitySignInSignOuts → const AspnetcoreMetric

The total number of calls to sign out user principals.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.sign_outs', SemanticInstrument.counter, '{sign_out}')
aspnetcoreIdentitySignInTwoFactorClientsForgotten → const AspnetcoreMetric

The total number of two factor clients forgotten.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.two_factor_clients_forgotten', SemanticInstrument.counter, '{client}')
aspnetcoreIdentitySignInTwoFactorClientsRemembered → const AspnetcoreMetric

The total number of two factor clients remembered.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.sign_in.two_factor_clients_remembered', SemanticInstrument.counter, '{client}')
aspnetcoreIdentityUserCheckPasswordAttempts → const AspnetcoreMetric

The number of check password attempts. Only checks whether the password is valid and not whether the user account is in a state that can log in.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.check_password_attempts', SemanticInstrument.counter, '{attempt}')
aspnetcoreIdentityUserCreateDuration → const AspnetcoreMetric

The duration of user creation operations.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.create.duration', SemanticInstrument.histogram, 's')
aspnetcoreIdentityUserDeleteDuration → const AspnetcoreMetric

The duration of user deletion operations.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.delete.duration', SemanticInstrument.histogram, 's')
aspnetcoreIdentityUserGeneratedTokens → const AspnetcoreMetric

The total number of token generations.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.generated_tokens', SemanticInstrument.counter, '{count}')
aspnetcoreIdentityUserUpdateDuration → const AspnetcoreMetric

The duration of user update operations.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.update.duration', SemanticInstrument.histogram, 's')
aspnetcoreIdentityUserVerifyTokenAttempts → const AspnetcoreMetric

The total number of token verification attempts.

Stability: development

const AspnetcoreMetric('aspnetcore.identity.user.verify_token_attempts', SemanticInstrument.counter, '{attempt}')
aspnetcoreMemoryPoolAllocated → const AspnetcoreMetric

Total number of bytes allocated by the memory pool. Allocation occurs when a memory rental request exceeds the available pooled memory.

Stability: development

const AspnetcoreMetric('aspnetcore.memory_pool.allocated', SemanticInstrument.counter, 'By')
aspnetcoreMemoryPoolEvicted → const AspnetcoreMetric

Total number of bytes evicted from the memory pool. Eviction occurs when idle pooled memory is reclaimed.

Stability: development

const AspnetcoreMetric('aspnetcore.memory_pool.evicted', SemanticInstrument.counter, 'By')
aspnetcoreMemoryPoolPooled → const AspnetcoreMetric

Number of bytes currently pooled and available for reuse.

Stability: development

const AspnetcoreMetric('aspnetcore.memory_pool.pooled', SemanticInstrument.upDownCounter, 'By')
aspnetcoreMemoryPoolRented → const AspnetcoreMetric

Total number of bytes rented from the memory pool.

Stability: development

const AspnetcoreMetric('aspnetcore.memory_pool.rented', SemanticInstrument.counter, 'By')
aspnetcoreRateLimitingActiveRequestLeases → const AspnetcoreMetric

Number of requests that are currently active on the server that hold a rate limiting lease.

const AspnetcoreMetric('aspnetcore.rate_limiting.active_request_leases', SemanticInstrument.upDownCounter, '{request}')
aspnetcoreRateLimitingQueuedRequests → const AspnetcoreMetric

Number of requests that are currently queued, waiting to acquire a rate limiting lease.

const AspnetcoreMetric('aspnetcore.rate_limiting.queued_requests', SemanticInstrument.upDownCounter, '{request}')
aspnetcoreRateLimitingRequestTimeInQueue → const AspnetcoreMetric

The time the request spent in a queue waiting to acquire a rate limiting lease.

const AspnetcoreMetric('aspnetcore.rate_limiting.request.time_in_queue', SemanticInstrument.histogram, 's')
aspnetcoreRateLimitingRequestLeaseDuration → const AspnetcoreMetric

The duration of rate limiting lease held by requests on the server.

const AspnetcoreMetric('aspnetcore.rate_limiting.request_lease.duration', SemanticInstrument.histogram, 's')
aspnetcoreRateLimitingRequests → const AspnetcoreMetric

Number of requests that tried to acquire a rate limiting lease.

const AspnetcoreMetric('aspnetcore.rate_limiting.requests', SemanticInstrument.counter, '{request}')
aspnetcoreRoutingMatchAttempts → const AspnetcoreMetric

Number of requests that were attempted to be matched to an endpoint.

const AspnetcoreMetric('aspnetcore.routing.match_attempts', SemanticInstrument.counter, '{match_attempt}')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
instrument → SemanticInstrument
The OTel instrument kind the spec assigns to this metric.
final
name → String
The on-wire metric name (e.g. http.server.request.duration).
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit → String
OTel unit string (UCUM-style: s for seconds, By for bytes, {request} for a counted entity, 1 for dimensionless).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<AspnetcoreMetric>
A constant List of the values in this enum, in order of their declaration.