Skip to main content

Get spans by project_name or project_id and optionally by trace_id and/or type

GET 

/v1/private/spans

Get spans by project_name or project_id and optionally by trace_id and/or type

Request

Query Parameters

    page int32

    Possible values: >= 1

    Default value: 1
    size int32

    Possible values: >= 1

    Default value: 10
    project_name string
    project_id uuid
    trace_id uuid
    type string

    Possible values: [general, tool, llm]

    filters string

Responses

Spans resource

Schema

    page int32
    size int32
    total int64

    content

    object[]

  • Array [

  • id uuid
    project_id uuid
    trace_id uuidrequired
    parent_span_id uuid
    name stringrequired
    type stringrequired

    Possible values: [general, tool, llm]

    start_time date-timerequired
    end_time date-time
    input object
    output object
    metadata object
    tags string[]

    usage

    object

    property name* int32
    created_at date-time
    last_updated_at date-time
    created_by string
    last_updated_by string

    feedback_scores

    object[]

  • Array [

  • name stringrequired
    category_name string
    value numberrequired

    Possible values: >= -1000000000 and <= 1000000000

    reason string
    source stringrequired

    Possible values: [ui, sdk]

    created_at date-time
    last_updated_at date-time
    created_by string
    last_updated_by string
  • ]

  • ]