Get Span Of Trace
GET/observability/spans/:span_id/
Get Span Of Trace
Request
Path Parameters
span_id Span Idrequired
Query Parameters
type Type
Default value: generation
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id Id (string)required
name Name (string)required
parent_span_id Parent Span Id (string)
created_at date-timerequired
variant
object
required
variant_id Variant Id (string)
variant_name Variant Name (string)
revision Revision (integer)
environment Environment (string)
spankind SpanKindrequired
Possible values: [TOOL
, CHAIN
, LLM
, WORKFLOW
, RETRIEVER
, EMBEDDING
, AGENT
, UNKNOWN
]
An enumeration.
status SpanStatusCoderequired
Possible values: [UNSET
, OK
, ERROR
]
An enumeration.
metadata objectrequired
trace_id Trace Id (string)
user_id User Id (string)
content objectrequired
children
object[]
id Id (string)required
name Name (string)required
parent_span_id Parent Span Id (string)
created_at date-timerequired
variant
object
required
variant_id Variant Id (string)
variant_name Variant Name (string)
revision Revision (integer)
environment Environment (string)
spankind SpanKindrequired
Possible values: [TOOL
, CHAIN
, LLM
, WORKFLOW
, RETRIEVER
, EMBEDDING
, AGENT
, UNKNOWN
]
An enumeration.
status SpanStatusCoderequired
Possible values: [UNSET
, OK
, ERROR
]
An enumeration.
metadata objectrequired
trace_id Trace Id (string)
user_id User Id (string)
content objectrequired
children undefined[]
config object
{
"id": "string",
"name": "string",
"parent_span_id": "string",
"created_at": "2024-08-19T07:55:03.628Z",
"variant": {
"variant_id": "string",
"variant_name": "string",
"revision": 0
},
"environment": "string",
"metadata": {},
"trace_id": "string",
"user_id": "string",
"content": {},
"children": [
{
"id": "string",
"name": "string",
"parent_span_id": "string",
"created_at": "2024-08-19T07:55:03.629Z",
"variant": {
"variant_id": "string",
"variant_name": "string",
"revision": 0
},
"environment": "string",
"metadata": {},
"trace_id": "string",
"user_id": "string",
"content": {},
"children": [
null
]
}
],
"config": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...