PATCH
/
v2
/
projects
/
{project_id}
/
traces
/
{trace_id}
Update Trace
curl --request PATCH \
  --url https://api.galileo.ai/v2/projects/{project_id}/traces/{trace_id} \
  --header 'Content-Type: application/json' \
  --header 'Galileo-API-Key: <api-key>' \
  --data '{
  "log_stream_id": "<string>",
  "experiment_id": "<string>",
  "metrics_testing_id": "<string>",
  "logging_method": "api_direct",
  "client_version": "<string>",
  "reliable": false,
  "trace_id": "<string>",
  "input": "<string>",
  "output": "<string>",
  "status_code": 123,
  "tags": [
    "<string>"
  ],
  "is_complete": true
}'
{
  "log_stream_id": "<string>",
  "experiment_id": "<string>",
  "metrics_testing_id": "<string>",
  "project_id": "<string>",
  "project_name": "<string>",
  "session_id": "<string>",
  "records_count": 123,
  "trace_id": "<string>"
}

Authorizations

Galileo-API-Key
string
header
required

Path Parameters

trace_id
string<uuid4>
required
project_id
string<uuid4>
required

Body

application/json

Request model for updating a trace.

trace_id
string<uuid4>
required

Trace id to update.

log_stream_id
string<uuid4> | null

Log stream id associated with the traces.

experiment_id
string<uuid4> | null

Experiment id associated with the traces.

metrics_testing_id
string<uuid4> | null

Metrics testing id associated with the traces.

logging_method
enum<string>
Available options:
playground,
python_client,
typescript_client,
api_direct
client_version
string | null
reliable
boolean
default:false

Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure.

input
string | null

Input of the trace. Overwrites previous value if present.

output
string | null

Output of the trace. Overwrites previous value if present.

status_code
integer | null

Status code of the trace. Overwrites previous value if present.

tags
string[] | null

Tags to add to the trace.

is_complete
boolean | null
default:false

Whether or not the records in this request are complete.

Response

Successful Response

project_id
string<uuid4>
required

Project id associated with the traces.

project_name
string
required

Project name associated with the traces.

session_id
string<uuid4>
required

Session id associated with the traces.

records_count
integer
required

Total number of records ingested

trace_id
string<uuid4>
required

Trace id associated with the updated trace.

log_stream_id
string<uuid4> | null

Log stream id associated with the traces.

experiment_id
string<uuid4> | null

Experiment id associated with the traces.

metrics_testing_id
string<uuid4> | null

Metrics testing id associated with the traces.