Skip to content

SpanData

autogen.beta.eval.sources._spans.SpanData dataclass #

SpanData(name, span_id, parent_id, start_ns, end_ns, attributes=dict(), status='UNSET', events=())

Normalized, SDK-free view of one span.

Backends populate this from their source (the OTel in-memory exporter, an on-disk JSON span, or a cloud query result) so :func:spans_to_trace never depends on any particular span representation.

Times are nanoseconds since the epoch (OTel's native unit). status is "OK" / "ERROR" / "UNSET".

name instance-attribute #

name

span_id instance-attribute #

span_id

parent_id instance-attribute #

parent_id

start_ns instance-attribute #

start_ns

end_ns instance-attribute #

end_ns

attributes class-attribute instance-attribute #

attributes = field(default_factory=dict)

status class-attribute instance-attribute #

status = 'UNSET'

events class-attribute instance-attribute #

events = ()