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 make :
?spanId:Uuid.t ->
?assistantId:Uuid.t ->
?sessionId:Uuid.t ->
?parentSpanId:Uuid.t ->
?spanName:Name.t ->
?spanType:SpanType.t ->
?startTimestamp:Timestamp.t ->
?endTimestamp:Timestamp.t ->
?status:SpanStatus.t ->
?statusDescription:SpanStatusDescriptionString.t ->
?requestId:Uuid.t ->
?originRequestId:SpanOriginRequestIdString.t ->
?attributes:SpanAttributes.t ->
unit ->
tval 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 ]