metrics: configure explicit histogram buckets for AI response latency

This commit is contained in:
mamad
2026-08-28 21:10:52 +03:30
parent 6a5971bc08
commit c62e7eac53
+2 -1
View File
@@ -59,7 +59,8 @@ ERRORS_RESOLVED_TOTAL = Counter(
AI_LATENCY_SECONDS = Histogram(
"copykar_ai_latency_seconds",
"Time taken for AI API operations",
["action"]
["action"],
buckets=(0.5, 1.0, 2.0, 3.0, 5.0, 8.0, 12.0, 20.0, 30.0, 45.0, 60.0, 90.0, 120.0, 180.0)
)
# Gauges