Values.SpanSourceA span represents a unit of work during AI agent execution, capturing timing, status, and contextual attributes.
type nonrec t = {spanId : Uuid.t option;Unique span identifier
*)assistantId : Uuid.t option;UUID of the Connect AI Assistant resource
*)sessionId : Uuid.t option;UUID of the Connect AI Session resource
*)parentSpanId : Uuid.t option;Parent span identifier for hierarchy. Null for root spans.
*)spanName : Name.t option;Service-defined operation name
*)spanType : SpanType.t option;Operation relationship type
*)startTimestamp : Timestamp.t option;Operation start time in milliseconds since epoch
*)endTimestamp : Timestamp.t option;Operation end time in milliseconds since epoch
*)status : SpanStatus.t option;Span completion status
*)statusDescription : SpanStatusDescriptionString.t option;Human-readable error description when status is ERROR or TIMEOUT
*)requestId : Uuid.t option;The service request ID that initiated the operation
*)originRequestId : SpanOriginRequestIdString.t option;The origin request identifier for end-to-end tracing.
*)attributes : SpanAttributes.t option;Span-specific contextual attributes
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `String of Uuid.t
| `Structure of (string * Awso.Botodata.value) list
| `Timestamp of Timestamp.t ])
list ]