OxL Reference

method Counter.value

Current value.

Example:

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

fn main() io {
  let c = metric.counter("docs_value_total")
  print("{c.value()}")
}
Output
0.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:578

See also