Get spans by project_name or project_id and optionally by trace_id and/or type
GET/v1/private/spans
Get spans by project_name or project_id and optionally by trace_id and/or type
Request
Query Parameters
page int32
Possible values: >= 1
Default value: 1
size int32
Possible values: >= 1
Default value: 10
project_name string
project_id uuid
trace_id uuid
type string
Possible values: [general
, tool
, llm
]
filters string
Responses
- 200
Spans resource
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
page int32
size int32
total int64
content
object[]
id uuid
project_id uuid
trace_id uuidrequired
parent_span_id uuid
name stringrequired
type stringrequired
Possible values: [general
, tool
, llm
]
start_time date-timerequired
end_time date-time
input object
output object
metadata object
tags string[]
usage
object
property name* int32
created_at date-time
last_updated_at date-time
created_by string
last_updated_by string
feedback_scores
object[]
name stringrequired
category_name string
value numberrequired
Possible values: >= -1000000000
and <= 1000000000
reason string
source stringrequired
Possible values: [ui
, sdk
]
created_at date-time
last_updated_at date-time
created_by string
last_updated_by string
{
"page": 0,
"size": 0,
"total": 0,
"content": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"project_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"trace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_span_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"type": "general",
"start_time": "2024-07-29T15:51:28.071Z",
"end_time": "2024-07-29T15:51:28.071Z",
"input": {},
"output": {},
"metadata": {},
"tags": [
"string"
],
"usage": {},
"created_at": "2024-07-29T15:51:28.071Z",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"created_by": "string",
"last_updated_by": "string",
"feedback_scores": [
{
"name": "string",
"category_name": "string",
"value": 0,
"reason": "string",
"source": "ui",
"created_at": "2024-07-29T15:51:28.071Z",
"last_updated_at": "2024-07-29T15:51:28.071Z",
"created_by": "string",
"last_updated_by": "string"
}
]
}
]
}
Loading...