Get Span Of Trace
GEThttps://cloud.agenta.ai/api/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
id Id (string)required
name Name (string)required
project_idobject
parent_span_idobject
created_at date-timerequired
variantobjectrequired
environmentobject
spankind Spankind (string)required
status SpanStatusCode (string)required
Possible values: [UNSET
, OK
, ERROR
]
metadata objectrequired
trace_id Trace Id (string)required
user_idobject
content objectrequired
childrenobject
configobject
{
"id": "string",
"name": "string",
"project_id": "string",
"parent_span_id": "string",
"created_at": "2024-11-22T12:54:53.609Z",
"variant": {
"variant_id": "string",
"variant_name": "string",
"revision": 0
},
"environment": "string",
"spankind": "string",
"status": "UNSET",
"metadata": {},
"trace_id": "string",
"user_id": "string",
"content": {},
"children": [
null
],
"config": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detailobject[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/observability/spans/:span_id/' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear