pub const ASPNETCORE_RATE_LIMITING_REQUESTS: &'static str;
Expand description

§Description

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

Requests could be:

  • Rejected by global or endpoint rate limiting policies
  • Canceled while waiting for the lease.

Meter name: Microsoft.AspNetCore.RateLimiting; Added in: ASP.NET Core 8.0

§Metadata

Instrument:counter
Unit:{request}
Status:Stable

§Attributes

NameRequirement
crate::attribute::ASPNETCORE_RATE_LIMITING_RESULTRequired
crate::attribute::ASPNETCORE_RATE_LIMITING_POLICYConditionally required: if the matched endpoint for the request had a rate-limiting policy.