curl --request PATCH \
--url https://api.pandaprobe.com/traces/{trace_id}/spans/{span_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"kind": "AGENT",
"status": "UNSET",
"input": null,
"output": null,
"model": "<string>",
"token_usage": {},
"metadata": {},
"ended_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"completion_start_time": "2023-11-07T05:31:56Z",
"model_parameters": {},
"cost": {}
}
'{
"span_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_span_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"kind": "AGENT",
"status": "UNSET",
"input": null,
"output": null,
"model": "<string>",
"token_usage": {},
"metadata": {},
"started_at": "<string>",
"ended_at": "<string>",
"error": "<string>",
"completion_start_time": "<string>",
"model_parameters": {},
"cost": {},
"latency_ms": 123,
"time_to_first_token_ms": 123
}Partially update a span on a trace.
Auth: Bearer + X-Project-ID | X-API-Key + X-Project-Name
curl --request PATCH \
--url https://api.pandaprobe.com/traces/{trace_id}/spans/{span_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"kind": "AGENT",
"status": "UNSET",
"input": null,
"output": null,
"model": "<string>",
"token_usage": {},
"metadata": {},
"ended_at": "2023-11-07T05:31:56Z",
"error": "<string>",
"completion_start_time": "2023-11-07T05:31:56Z",
"model_parameters": {},
"cost": {}
}
'{
"span_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent_span_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"kind": "AGENT",
"status": "UNSET",
"input": null,
"output": null,
"model": "<string>",
"token_usage": {},
"metadata": {},
"started_at": "<string>",
"ended_at": "<string>",
"error": "<string>",
"completion_start_time": "<string>",
"model_parameters": {},
"cost": {},
"latency_ms": 123,
"time_to_first_token_ms": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Partial-update schema for a span (all fields optional).
512Categorises what a span represents in an agentic workflow.
AGENT, TOOL, LLM, RETRIEVER, CHAIN, EMBEDDING, OTHER Mirrors the OTel StatusCode for a span's outcome.
UNSET, OK, ERROR 255Show child attributes
Successful Response
Public span representation.
Categorises what a span represents in an agentic workflow.
AGENT, TOOL, LLM, RETRIEVER, CHAIN, EMBEDDING, OTHER Mirrors the OTel StatusCode for a span's outcome.
UNSET, OK, ERROR Show child attributes