Skip to main content

Query traces, with optional grouping, windowing, filtering, and pagination.

GET 

https://cloud.agenta.ai/api/observability/v1/traces

Query traces, with optional grouping, windowing, filtering, and pagination.

Request

Query Parameters

    format Format

    Possible values: [opentelemetry, agenta]

    Default value: agenta

    focus any
    oldest any
    newest any
    filtering any
    page any
    size any
    next any
    stop any

Responses

Successful Response
Schema
    anyOf
    version Version (string)required
    countobject
    anyOf
    integer
    spansobject[]required
  • Array [

  • contextobjectrequired
    trace_id Trace Id (string)required
    span_id Span Id (string)required
    name Name (string)required
    kind OTelSpanKind (string)

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

    Default value: SPAN_KIND_UNSPECIFIED

    start_time date-timerequired
    end_time date-timerequired
    status_code OTelStatusCode (string)

    Possible values: [STATUS_CODE_OK, STATUS_CODE_ERROR, STATUS_CODE_UNSET]

    Default value: STATUS_CODE_UNSET

    status_messageobject
    anyOf
    string
    attributesobject
    anyOf
    eventsobject
    anyOf
  • Array [

  • name Name (string)required
    timestamp Timestamp (string)required
    attributesobject
    anyOf
  • ]

  • parentobject
    anyOf
    trace_id Trace Id (string)required
    span_id Span Id (string)required
    linksobject
    anyOf
  • Array [

  • contextobjectrequired
    trace_id Trace Id (string)required
    span_id Span Id (string)required
    attributesobject
    anyOf
  • ]

  • ]

curl -L 'https://cloud.agenta.ai/api/observability/v1/traces' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— query
— query
— query
— query
— query
— query
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!