Skip to main content

ASPNETCORE_AUTHORIZATION_ATTEMPTS

Constant ASPNETCORE_AUTHORIZATION_ATTEMPTS 

pub const ASPNETCORE_AUTHORIZATION_ATTEMPTS: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

§Description

The total number of authorization attempts.

§Notes

Meter name: Microsoft.AspNetCore.Authorization; Added in: ASP.NET Core 10.0

§Metadata

Instrument:counter
Unit:{attempt}
Status:Development

§Attributes

NameRequirement
crate::attribute::ASPNETCORE_AUTHORIZATION_POLICYConditionally_required: if a policy is specified.
crate::attribute::ASPNETCORE_AUTHORIZATION_RESULTConditionally_required: if no exception was thrown.
crate::attribute::ASPNETCORE_USER_IS_AUTHENTICATEDRequired
crate::attribute::ERROR_TYPEConditionally_required: if and only if an error has occurred.