How It Works
- Instrument your agent to export OTLP traces to Bluejay — see Sending Traces to Bluejay.
- Collect trace IDs generated during the simulation call.
- Extract the
simulation_result_id— Bluejay injectsX-Simulation-Result-Idinto every simulation call via SIP headers, WebSocket connect messages, or LiveKit participant attributes. - POST to
/v1/update-simulation-resultwith bothsimulation_result_idandtrace_idsafter the call ends.
The
/v1/update-simulation-result endpoint also accepts tool_calls, events, and metadata alongside trace_ids. See Simulation Tool Calls for details.Update Simulation Result
Full endpoint reference.
Simulation Tool Calls
Enrich simulation results with tool call data.
LiveKit Traces
LiveKit-specific trace linking guide.
Sending Traces to Bluejay
OTLP setup and instrumentation.