Skip to main content

Create Traces

POST 

/observability/trace/

Create Traces

Request

Body

required

    trace Trace (string)required

    spans

    object[]

    required

  • Array [

  • id Id (string)required
    app_id App Id (string)
    variant_id Variant Id (string)
    variant_name Variant Name (string)
    inputs object
    internals object
    outputs string[]
    config object
    environment Environment (string)
    tags string[]
    token_consumption Token Consumption (integer)
    name Name (string)required
    parent_span_id Parent Span Id (string)
    attributes object
    spankind Spankind (string)required
    status Status (string)required
    user User (string)
    start_time date-timerequired
    end_time date-timerequired

    tokens

    object

    prompt_tokens Prompt Tokens (integer)

    Default value: 0

    completion_tokens Completion Tokens (integer)

    Default value: 0

    total_tokens Total Tokens (integer)

    Default value: 0

    cost Cost (number)
  • ]

Responses

Successful Response

Schema

    message Message (string)required
    data objectrequired
Loading...