Module std::observe

Runtime observability reads.

Contents

Functions

Function read

pub fn read(name: string) -> i64

Read one canonical metric by name.

Returns -1 when the metric name is unknown.

Function scrape

pub fn scrape() -> string

Render the current metric registry in scrape text format.

Function series

pub fn series() -> string

Render the canonical metric series names, one per line.

Function barrier

pub fn barrier() -> i64

Wait for actor-turn observe attribution visible to series/scrape.

Returns 0 on success, -1 when called from inside an actor turn, and -2 if the native runtime's bounded 30-second internal wait expires.