Skip to content

Commit 4feeaed

Browse files
authored
Merge pull request lightspeed-core#1702 from major/rspeed-3017-fix-response-duration-buckets
RSPEED-3017: use custom buckets for response duration histogram
2 parents d15d37d + 047091b commit 4feeaed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/metrics/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
# Histogram to measure response durations
3333
# This will be used to track how long it takes to handle requests
3434
response_duration_seconds = Histogram(
35-
"ls_response_duration_seconds", "Response durations", ["path"]
35+
"ls_response_duration_seconds",
36+
"Response durations",
37+
["path"],
38+
buckets=LLM_INFERENCE_DURATION_BUCKETS,
3639
)
3740

3841
# Metric that indicates what provider + model customers are using so we can

0 commit comments

Comments
 (0)