You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use histograms to measure the distribution of values, such as request duration or response size. Unleash automatically calculates percentiles (p50, p95, p99).
365
+
Histograms measure value distribution (request duration, response size).
368
366
369
367
```java
370
368
unleash.getImpactMetrics()
371
-
.defineHistogram("request_time_ms", "Time taken to process a request in milliseconds");
372
-
373
-
long start = System.currentTimeMillis();
374
-
// handleRequest();
375
-
long duration = System.currentTimeMillis() - start;
369
+
.defineHistogram("request_time_ms", "Time taken to process a request in milliseconds", List.of(50.0, 100.0, 200.0, 500.0, 1000.0));
0 commit comments