Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

The one set of tracing field names every kind’s traced wrapper uses (docs/DESIGN-KINDS.md §5).

A span named SPAN carries KIND, BACKEND, OP, CAPABILITY and, once the call has returned, OUTCOME. No key and no value content, and no error text, is ever a field: keys can be secrets, and an error message can quote one. Counters are the consumer’s subscriber’s job.

Constants§

BACKEND
Field: the backend’s name, as backend() reports it.
CAPABILITY
Field: the capability id the operation exercises (kv.get, …).
KIND
Field: the kind (kv, blob, rel).
OP
Field: the operation (get, put, batch, …).
OUTCOME
Field, recorded when the call returns: ok, or the error’s kind (backend, unsupported, corrupt, timed_out).
SPAN
The span’s name.