1 write to _metrics
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
44
_metrics
= metrics;
6 references to _metrics
Microsoft.AspNetCore.RateLimiting (6)
RateLimitingMiddleware.cs (6)
91
var metricsContext =
_metrics
.CreateContext(policyName);
102
_metrics
.LeaseStart(metricsContext);
107
_metrics
.LeaseEnd(metricsContext, startTimestamp, Stopwatch.GetTimestamp());
112
_metrics
.LeaseFailed(metricsContext, leaseContext.RequestRejectionReason!.Value);
169
_metrics
.QueueStart(metricsContext);
175
_metrics
.QueueEnd(metricsContext, leaseContext.RequestRejectionReason, startTimestamp, Stopwatch.GetTimestamp());