Skip to main content

SPAN_EVENTS

Static SPAN_EVENTS 

Source
pub static SPAN_EVENTS: LazyLock<SchemaRef>
Expand description

SPAN_EVENTS — a child table, not a List<Struct> column.

Events carry attributes, and attributes already live in their own EAV table keyed by parent_id. A list-of-struct column would need a second, different mechanism to hang attributes off list elements; a child table with its own dense id reuses the one that exists.

id is this table’s own block-local id, distinct from parent_id, which points at the span. span_event_attrs.parent_id refers to id here.