Skip to main content

Create Traces

POST 

/observability/trace/

Create Traces

Request

Body

required
    trace Trace (string)required
    spansobject[]required
  • Array [

  • id Id (string)required
    app_id App Id (string)required
    project_idobject
    anyOf
    string
    variant_idobject
    anyOf
    string
    variant_nameobject
    anyOf
    string
    inputsobject
    anyOf
    internalsobject
    anyOf
    outputsobject
    anyOf
  • Array [

  • string
  • ]

  • configobject
    anyOf
    environmentobject
    anyOf
    string
    tagsobject
    anyOf
  • Array [

  • string
  • ]

  • token_consumptionobject
    anyOf
    integer
    name Name (string)required
    parent_span_idobject
    anyOf
    string
    attributesobject
    anyOf
    spankind Spankind (string)required
    status Status (string)required
    userobject
    anyOf
    string
    start_time date-timerequired
    end_time date-timerequired
    tokensobject
    anyOf
    prompt_tokens Prompt Tokens (integer)

    Default value: 0

    completion_tokens Completion Tokens (integer)

    Default value: 0

    total_tokens Total Tokens (integer)

    Default value: 0

    costobject
    anyOf
    number
  • ]

Responses

Successful Response
Schema
    message Message (string)required
    data objectrequired
Loading...