method Histogram.observe
Records one observation.
Example:
use std.obs { metric }
fn main() io {
let h = metric.histogram("docs_observe_seconds", "", [1.0, 10.0])
h.observe(3.0)
print("{h.count()}")
}Output
1.0
pub(api) fn observe(v: f64) ioComplexity. O(buckets).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
v | f64 |
Effects
io
Defined in: std/obs/obs.oxl:742