Expand description
Phase 219 data-plane span vocabulary.
Producer-side data-plane operations (FBMU, FBBU, GPU session, runtime
capability cache) emit canonical ResourceSpans using the helpers
in this module. Span names come from the PHASE_219_SPAN_NAMES
contract; lease IDs are kept in the span body, never on Prometheus
labels.
The vocabulary lives here — not in grafos-scheduler — so that
data-plane producers (e.g. grafos-runtime, grafos-std) can emit
spans without depending on the scheduler crate. This aligns with the
v1.1 design (observability is substrate-level, not policy-level) and
with §3.3 invariant 2 (every edge has a trace context, so every edge
realization is a candidate emission site).
Enums§
- Dataplane
Span Kind - Phase 219 data-plane span family. Each variant maps 1:1 to a span
name in
PHASE_219_SPAN_NAMESso callers can refer to the family by typed identity rather than stringly-typed names.
Functions§
- build_
dataplane_ span - Build a data-plane span using the Phase 219 canonical span names. The helper keeps the lease id in the span body (never a Prometheus label) and routes resource kind / operation / outcome through stable attribute keys so consumers see the same shape across families.
- build_
dataplane_ span_ from_ traceparent - Build a data-plane span from an optional W3C traceparent.
- dataplane_
operation_ label - Stable operation label for a producer-side
OpType. MirrorsOpType’sfmt::Displayimpl but is&'static strso callers can set it as a span attribute without allocation. The match is exhaustive for the same reason asdataplane_span_kind_for_op_type. - dataplane_
span_ kind_ for_ op_ type - Map a producer-side
OpTypeto the Phase 219 data-plane span family it belongs to.TaskletSubmitis a control-plane submission and has no data-plane span kind — returningNonekeeps the vocabulary closed (callers must handle that variant explicitly). - emit_
dataplane_ span - Emit a data-plane span through grafos-observe’s shared span exporter.
- emit_
dataplane_ span_ from_ traceparent - Emit a data-plane span from an optional W3C traceparent.