Loading...
Skip to main content

Get Agent Spans

Returns spans that trace an Agent's execution.

Path Parameters
    agentId string required

    The ID of the agent to get spans for.

Query Parameters
    startTimestamp int32

    The earliest timestamp (as seconds since the epoch) to query.

    Defaults to 15 minutes before the current time.

    endTimestamp int32

    The latest timestamp (as seconds since the epoch) to query.

    Defaults to the current time.

    limit uint32

    The maximum number of spans to return.

    Defaults to 100. Cannot be more than 1000.

    offset uint32

    The offset of the first span to return.

    conversationId string

    The ID of the conversation to get spans for.

    messageId string

    The ID of the message to get spans for.

    status enum

    Possible values: [STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR]

    The status code of spans to return.

Responses

OK


Schema
    spans object[]
  • Array [
  • timestamp date-time

    The timestamp at which the span started.

    traceId string

    The trace ID of the span.

    spanId string

    The span ID of the span.

    parentSpanId string

    The parent span ID of the span.

    durationMs float

    The duration of the span in milliseconds.

    name string

    The name of the span.

    kind enum

    Possible values: [SPAN_KIND_INTERNAL, SPAN_KIND_SERVER, SPAN_KIND_CLIENT, SPAN_KIND_PRODUCER, SPAN_KIND_CONSUMER]

    The kind of the span.

    statusCode enum

    Possible values: [STATUS_CODE_UNSET, STATUS_CODE_OK, STATUS_CODE_ERROR]

    The status code of the span.

    statusMessage string

    The status message of the span.

    attributes object

    Additional attributes set on the span.

  • ]
Loading...