Before you start
You need:- A Mirador project
- A Mirador server key (
mir_srv_*) for that project - Access to the OpenRouter account or organization whose traffic you want to observe
1. Create a Mirador server key
In Mirador, open your project’s API keys page and create a server key. Copy it when it is shown; the full key is only displayed once. Use a dedicated key for OpenRouter so you can rotate or revoke the integration independently. Treat the key like a password and do not commit it to source control.2. Enable OpenRouter Broadcast
Open OpenRouter Observability settings, then:- Turn on Enable Broadcast.
- Find OpenTelemetry Collector in the destination list.
- Open the destination’s edit form.
3. Point OpenRouter at Mirador
Enter this OTLP/HTTP traces endpoint:openrouter-connection-test.
4. Send a generation
Make any request through OpenRouter from your application, the OpenRouter playground, orcurl. Nothing about the request needs to change.
Open your Mirador project and select AI → OpenRouter. Recent generations arrive first; aggregate metrics can take a little longer to update. If you do not see the request, widen the dashboard time range.
What Mirador receives
Each OpenRouter generation becomes a trace. Mirador uses its standard GenAI and OpenRouter metadata to show:- Model and serving provider
- Input, output, and total token counts
- Cost and average cost per generation
- Time to first token and end-to-end latency
- Error count and error rate
- OpenRouter API key and organization breakdowns
- User, session, and custom
tracemetadata when supplied with the request - Prompt and completion content when the destination’s Privacy Mode is off
Privacy Mode
OpenRouter configures Privacy Mode separately for each Broadcast destination.- Off: prompt and completion content is sent to Mirador, enabling conversation-level debugging.
- On: input and output content is removed before the trace leaves OpenRouter. Tokens, cost, timing, model, provider, errors, and custom metadata still arrive.
Troubleshooting
Test Connection fails
Test Connection fails
Confirm the endpoint is exactly
https://otel.mirador.org/v1/traces and the headers field is valid JSON. The authorization value must contain a current Mirador server key for the target project.The connection test appears, but generations do not
The connection test appears, but generations do not
Confirm Enable Broadcast is still on, send a new OpenRouter request, and widen Mirador’s time range. Broadcast only exports requests made after the destination is enabled.
Metrics appear, but prompts and completions are empty
Metrics appear, but prompts and completions are empty
Check Privacy Mode on the OpenTelemetry Collector destination. When it is enabled, OpenRouter deliberately strips message content while retaining operational metadata.
Only one person's traffic appears
Only one person's traffic appears
The destination may be configured on an individual account. An OpenRouter organization administrator can configure organization-level Broadcast so every organization API key reports to the same Mirador project.
Next steps
OpenTelemetry traces
Learn how OpenRouter span content and metadata map into Mirador traces
OpenRouter Broadcast
Review OpenRouter’s Broadcast controls, sampling, metadata, and privacy options