Module Values.SpanSource

A span represents a unit of work during AI agent execution, capturing timing, status, and contextual attributes.

Sourcetype nonrec t = {
  1. spanId : Uuid.t option;
    (*

    Unique span identifier

    *)
  2. assistantId : Uuid.t option;
    (*

    UUID of the Connect AI Assistant resource

    *)
  3. sessionId : Uuid.t option;
    (*

    UUID of the Connect AI Session resource

    *)
  4. parentSpanId : Uuid.t option;
    (*

    Parent span identifier for hierarchy. Null for root spans.

    *)
  5. spanName : Name.t option;
    (*

    Service-defined operation name

    *)
  6. spanType : SpanType.t option;
    (*

    Operation relationship type

    *)
  7. startTimestamp : Timestamp.t option;
    (*

    Operation start time in milliseconds since epoch

    *)
  8. endTimestamp : Timestamp.t option;
    (*

    Operation end time in milliseconds since epoch

    *)
  9. status : SpanStatus.t option;
    (*

    Span completion status

    *)
  10. statusDescription : SpanStatusDescriptionString.t option;
    (*

    Human-readable error description when status is ERROR or TIMEOUT

    *)
  11. requestId : Uuid.t option;
    (*

    The service request ID that initiated the operation

    *)
  12. originRequestId : SpanOriginRequestIdString.t option;
    (*

    The origin request identifier for end-to-end tracing.

    *)
  13. attributes : SpanAttributes.t option;
    (*

    Span-specific contextual attributes

    *)
}
Sourceval make : ?spanId:??? -> ?assistantId:??? -> ?sessionId:??? -> ?parentSpanId:??? -> ?spanName:??? -> ?spanType:??? -> ?startTimestamp:??? -> ?endTimestamp:??? -> ?status:??? -> ?statusDescription:??? -> ?requestId:??? -> ?originRequestId:??? -> ?attributes:??? -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t