Create Traces
POST/observability/trace/
Create Traces
Request
- application/json
Body
required
Array [
- MOD1
- MOD1
- MOD1
- MOD2
Array [
]
- MOD1
- MOD1
Array [
]
- MOD1
- MOD1
- MOD1
- LLMTokens
- MOD1
- ]
trace Trace (string)required
spansobject[]required
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
string
configobject
anyOf
environmentobject
anyOf
string
tagsobject
anyOf
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
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
message Message (string)required
data objectrequired
{
"message": "string",
"data": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detailobject[]
locobject[]required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...