OxL Reference

method Gauge.set

Sets the value.

Example:

oxl✓ checked in CI
use std.obs { metric }

fn main() io {
  let g = metric.gauge("docs_set")
  g.set(3.5)
  print("{g.value()}")
}
Output
3.5
pub(api) fn set(v: f64) io

Complexity. O(1).

Since. 1.0.0-beta

Parameters

NameType
vf64

Effects

io

Defined in: std/obs/obs.oxl:619

See also