Expand description
Auxiliary trait surface — the small set of cross-cutting traits the codegen and the bridge use to talk to the runtime without dragging the whole event type into every consumer. Spec 12 § 3.6.
BuildableTo— marker for typed-builder “all-required-set” state.FieldCapture— visitor used by tracing→obs auto-typing to lift recorded fields into a typed event.SpanCtx— read-only view of the active scope/span context thatregister_typed-style closures receive.EnumCount— compile-time variant count, emitted by#[derive(EnumLabel)]so lint L005 can run without nightly.
MetricEmitter is defined in its own module (crate::metric); it
belongs alongside the metric pipeline rather than the codegen
support traits.
Structs§
- Field
Capture - Visitor used by tracing’s
Event::record(visitor)to extract typed values into a thread-local scratch space; reused across emissions (zero per-event allocation in the steady state). Spec 12 § 3.6. - SpanCtx
- Read-only view of the active scope/span context that
register_typed-style closures receive. Spec 12 § 3.6. - Span
Frame - One frame of the bridge-visible span ancestry. Borrowed; never owns span data. Spec 12 § 3.6.
Traits§
- Buildable
To - Marker trait implemented by
typed-builder’s “all-required-fields-set” builder state. The codegen emits a blanket impl over the parameter shapetyped-builderproduces, so.emit()only compiles when every required setter has been called. Spec 12 § 3.6. - Enum
Count - Compile-time variant count for any enum used as a
LABELfield. Generated by#[derive(EnumLabel)]and consulted by lint L005 so we do not depend on nightly’svariant_count. Spec 12 § 3.6.