Skip to main content

ListTracesResponse

data object[]
  • Array [
  • trace_idstring

    Trace identifier

    span_idstring

    Span identifier

    timestampstring<date-time>

    Span timestamp

    service_namestring

    Service name

    span_namestring

    Span name

    duration_nsinteger<int64>

    Duration in nanoseconds

    status_codestring

    Status code

    llm_attributes object

    Normalized LLM-specific attributes for list view (excludes large fields like output_message)

    request_modelstring

    The model requested for the LLM call

    provider_namestring

    The LLM provider name (e.g., openai, anthropic)

    input_tokensinteger<int64>

    Number of input/prompt tokens

    output_tokensinteger<int64>

    Number of output/completion tokens

    total_coststring

    Total cost of the LLM operation in dollars

    operation_namestring

    Type of LLM operation (chat, embeddings, text_completion)

    output_typestring

    Type of output (e.g., text)

    sdk_namestring

    Name of the SDK that generated the trace (openllmetry, openlit)

    sdk_versionstring

    Version of the SDK

    system_promptstring

    System prompt/instructions

    user_promptstring

    User prompt/message

  • ]
  • meta object
    next_cursorstring

    Cursor for the next page

    has_moreboolean

    Whether there are more items to fetch

    ListTracesResponse
    {
    "data": [
    {
    "trace_id": "string",
    "span_id": "string",
    "timestamp": "2024-07-29T15:51:28.071Z",
    "service_name": "string",
    "span_name": "string",
    "duration_ns": 0,
    "status_code": "string",
    "llm_attributes": {
    "request_model": "string",
    "provider_name": "string",
    "input_tokens": 0,
    "output_tokens": 0,
    "total_cost": "string",
    "operation_name": "string",
    "output_type": "string",
    "sdk_name": "string",
    "sdk_version": "string",
    "system_prompt": "string",
    "user_prompt": "string"
    }
    }
    ],
    "meta": {
    "next_cursor": "string",
    "has_more": true
    }
    }
    Was this page helpful?