Traces
client.traces — upload trace files (JSON/JSONL, ≤50 MB), retrieve, list, delete.
Upload
result = client.traces.upload("./my_traces.json")
print(f"Uploaded {len(result.trace_ids)} traces: {result.trace_ids}")Get one
trace = client.traces.get(trace_id)
# Trace fields: id, organization_id, project_id, created_at, filename,
# data (Dict[str, Any]), input, integration_idList with filters
response = client.traces.get_many(
page=1, page_size=50,
source="...", # filter by source
judge_id="...", # traces evaluated by this judge
status="...",
time_range={"from": "...", "to": "..."},
search="...",
sort_by="created_at",
sort_order="desc",
)
# response.traces,.total_count,.countDelete
List sources
Trace shape
File formats
Async
See also
Last updated
Was this helpful?