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.
WHERE IT SITS
INTERFACE
fn trace_random(n : Int32) -> Bytes raise @moonseed.UnavailablefnEntropy 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.TracerfnA tracer over sink and sampler, drawing ids from the platform entropy source.
fn trace_clock() -> () -> Int64fnThe 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.