module pixeltable.telemetry
Dependency-free instrumentation hooks. Core pixeltable reports spans (timed, nested units of work) and discrete events through this module; subscribers (e.g. the bridge inopentelemetry-instrumentation-pixeltable) translate them into a
telemetry backend. With no subscribers registered every call is a near-free no-op, but hot loops should
still guard with if telemetry.active(): before building attribute dicts (or pass attrs as a
callable).
Spans should cover contiguous units of real computation (a UDF call, a DB insert batch, model loading) or
serve as structural containers (operation and exec-node spans). A CPU work span must not contain a
yield/await, which would let it cover unrelated interleaved work; awaiting an external call inside a
span is fine (the request really is in flight).
func emit()
Signature
func span()
Signature
func span_end()
Signature
func span_start()
Signature