OxL Reference

method Gauge.value

The current value.

Example:

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

fn main() io {
  let g = metric.gauge("docs_gauge_value")
  g.set(9.0)
  print("{g.value()}")
}
Output
9.0
pub(api) fn value() -> f64  io

Complexity. O(1).

Since. 1.0.0-beta

Returns

f64

Effects

io

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

See also