Overview
Get Started
How-to Guides
- Overview
- Logging Basics
- Agentic AI
- Conversational AI
- Luna 2
- Retrieval-Augmented Generation
Cookbooks
- Overview
- Agents
- RAG
Integrations
Concepts
- Metrics
- Luna 2
- Projects
- Logging
- Datasets
- Annotations
- Experiments
- Playground
SDK/API Reference
- Python SDK
- TypeScript SDK
- API
- health
- auth
- trace
- log_stream
- experiment
- feedback
- annotation
- data
- protect
- datasets
- projects
References
trace
Update Span
Update a span with the given ID.
PATCH
/
v2
/
projects
/
{project_id}
/
spans
/
{span_id}
Copy
Ask AI
curl --request PATCH \
--url https://api.galileo.ai/v2/projects/{project_id}/spans/{span_id} \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"logging_method": "api_direct",
"client_version": "<string>",
"reliable": false,
"span_id": "<string>",
"input": "<string>",
"output": "<string>",
"tags": [
"<string>"
],
"status_code": 123
}'
Copy
Ask AI
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"span_id": "<string>"
}
Authorizations
Path Parameters
Body
application/json
Request model for updating a trace.
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PATCH \
--url https://api.galileo.ai/v2/projects/{project_id}/spans/{span_id} \
--header 'Content-Type: application/json' \
--header 'Galileo-API-Key: <api-key>' \
--data '{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"logging_method": "api_direct",
"client_version": "<string>",
"reliable": false,
"span_id": "<string>",
"input": "<string>",
"output": "<string>",
"tags": [
"<string>"
],
"status_code": 123
}'
Copy
Ask AI
{
"log_stream_id": "<string>",
"experiment_id": "<string>",
"project_id": "<string>",
"project_name": "<string>",
"session_id": "<string>",
"records_count": 123,
"span_id": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.