moonzero · control plane v0.15.0 · 49 packages · 4 targets · Apache-2.0 docs / control / telemetry GitHub

10 / CONTROL

telemetry

The tracer a service runs on when nobody configured one: ids from the platform entropy source, spans to a caller-named sink, and every request sampled.

fn trace_random(n : Int32) -> Bytes raise @moonseed.Unavailable

fnEntropy for trace and span ids: an n-octet slice of the platform entropy source. The fallback inside tracer covers a refused source.

fn tracer( sink~ : &@moontel.Sink = @moontel.discard, sampler~ : &@moontel.Sampler = @moontel.always, limits~ : @moontel.Limits = @moontel.trace_limits) -> @trace.Tracer

fnA tracer over sink and sampler, drawing ids from the platform entropy source.

fn trace_clock() -> () -> Int64

fnThe clock the tracer is driven by, in nanoseconds: the platform millisecond clock scaled up, which is the resolution every span in this framework is measured at anyway.