Skip to content

Commit 00015bf

Browse files
committed
Missed histogram
1 parent 43ffc38 commit 00015bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Middleware/RateLimiting/src/RateLimitingMetrics.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public RateLimitingMetrics(IMeterFactory meterFactory)
3131
_requestLeaseDurationCounter = _meter.CreateHistogram<double>(
3232
"aspnetcore.rate_limiting.request_lease.duration",
3333
unit: "s",
34-
description: "The duration of rate limiting leases held by HTTP requests on the server.");
34+
description: "The duration of rate limiting leases held by HTTP requests on the server.",
35+
advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries });
3536

3637
_queuedRequestsCounter = _meter.CreateUpDownCounter<long>(
3738
"aspnetcore.rate_limiting.queued_requests",

0 commit comments

Comments
 (0)