agent_run_trace_export
Return a terminal run's trace as OTLP/JSON spans with OpenTelemetry GenAI attributes (invoke_agent > chat and execute_tool). POST the otlp value to any OTLP/HTTP collector at /v1/traces (Langfuse, Datadog, Grafana Tempo, an OTel Collector). Ids are stable per run, so re-sending updates the trace.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "agent_run_trace_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | TeamShared agent run UUID | |
| include_io | No | Also put each step's input, output and model text on its span |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||