Enabling Broadcast
To enable broadcast for your account or organization:- Navigate to Settings > Observability in your OpenRouter dashboard
- Toggle the “Enable Broadcast” switch to turn on the feature
- Add one or more destinations where you want to send your traces
Supported Destinations
The following destinations are currently available:- Arize AX
- Braintrust
- ClickHouse
- Comet Opik
- Datadog
- Grafana Cloud
- Langfuse
- LangSmith
- New Relic
- OpenTelemetry Collector
- PostHog
- Raindrop
- Ramp
- S3 / S3-Compatible
- Sentry
- Snowflake
- W&B Weave
- Webhook
Coming Soon
The following destinations are in development and will be available soon:- AWS Firehose
- Dynatrace
- Evidently
- Fiddler
- Galileo
- Helicone
- HoneyHive
- Keywords AI
- Middleware
- Mona
- OpenInference
- Phoenix
- Portkey
- Supabase
- WhyLabs
Trace Data
Each broadcast trace includes comprehensive information about your API request:- Request & Response Data: The input messages and model output (with multimodal content stripped for efficiency)
- Token Usage: Prompt tokens, completion tokens, and total tokens consumed
- Cost Information: The total cost of the request
- Timing: Request start time, end time, and latency metrics
- Model Information: The model slug and provider name used for the request
- Tool Usage: Whether tools were included in the request and if tool calls were made
Optional Trace Data
You can enrich your traces with additional context by including these optional fields in your API requests:- User ID: Associate traces with specific end-users by including the
userfield (up to 128 characters). This helps you track usage patterns and debug issues for individual users.
- Session ID: Group related requests together (such as a conversation or agent workflow) by including the
session_idfield (up to 128 characters). You can also pass this via thex-session-idHTTP header.
Custom Metadata
For advanced observability workflows, you can pass arbitrary metadata to your traces using thetrace field. This field accepts any JSON object and is passed through to all your configured broadcast destinations.
Common Metadata Keys
These metadata keys are commonly used across observability platforms:
When using these fields, your traces will appear with a hierarchical structure in platforms like Langfuse:
Linking to External Traces
If you have your own tracing instrumentation (e.g., OpenTelemetry), you can useparent_span_id to nest OpenRouter calls under your existing spans:
- Track end-to-end workflows spanning multiple LLM calls
- Organize traces by business logic rather than individual API calls
- Build rich observability dashboards with meaningful trace names
- Integrate OpenRouter traces with your existing application traces
- Pass any custom data you need to your observability platforms
Destination-Specific Metadata
Each observability platform may recognize different metadata keys. See the destination-specific guides for details:- Langfuse - Supports trace naming, user/session IDs, and arbitrary metadata
- LangSmith - Supports tags, session tracking, and metadata
- Datadog - Supports tags, user IDs, and session IDs
- Braintrust - Supports tags and custom metadata fields
- W&B Weave - Supports custom attributes in trace data
- Arize AX - Supports OpenInference span attributes and metadata
- Comet Opik - Supports trace/span metadata and cost tracking
- Grafana Cloud - Supports TraceQL-queryable span attributes
- New Relic - Supports NRQL-queryable span attributes
- Sentry - Supports span attributes for performance monitoring
- OpenTelemetry Collector - Supports OTLP span attributes for any backend
- Webhook - Custom metadata in OTLP JSON payload
- PostHog - Supports event properties for LLM analytics
- Raindrop - Supports custom event properties for AI observability
- Ramp - Supports OTLP span attributes for AI cost tracking
- Snowflake - Queryable via VARIANT column functions
- ClickHouse - Queryable via JSONExtract functions
- S3 - Stored in trace JSON files
API Key Filtering
Each destination can be configured to only receive traces from specific API keys. This is useful when you want to:- route traces from different parts of your application to different observability platforms
- isolate monitoring for specific use cases
- or send production API key traces at a lower sampling rate than development keys
Sampling Rate
Each destination can be configured with a sampling rate to control what percentage of traces are sent. This is useful for high-volume applications where you want to reduce costs or data volume while still maintaining visibility into your LLM usage. A sampling rate of 1.0 sends all traces, while 0.5 would send approximately 50% of traces.Privacy Mode
Each destination can optionally enable Privacy Mode to exclude prompt and completion content from traces. When Privacy Mode is enabled, the following data is stripped before sending traces:- Input messages (prompts sent to the model)
- Output choices (completions returned by the model)
Security
Your destination credentials are encrypted before being stored and are only decrypted when sending traces. Traces are sent asynchronously after requests complete, so enabling broadcast does not add latency to your API responses.Organization Support
Broadcast can be configured at both the individual user level and the organization level. Organization admins can set up shared destinations that apply to all API keys within the organization, ensuring consistent observability across your team.Walkthroughs
Step-by-step guides for configuring specific observability destinations:- Arize AX - ML observability and monitoring
- Braintrust - LLM evaluation and monitoring
- ClickHouse - Real-time analytics database
- Comet Opik - LLM evaluation and testing
- Datadog - Full-stack monitoring and analytics
- Grafana Cloud - Observability and monitoring platform
- Langfuse - Open-source LLM engineering platform
- LangSmith - LangChain observability and debugging
- New Relic - Full-stack observability platform
- OpenTelemetry Collector - Send traces to any OTLP-compatible backend
- PostHog - Product analytics with LLM tracking
- Raindrop - AI observability and monitoring
- Ramp - AI usage tracking and cost management
- S3 / S3-Compatible - Store traces in S3, R2, or compatible storage
- Sentry - Application monitoring and error tracking
- Snowflake - Cloud data warehouse for analytics
- W&B Weave - LLM observability and tracking
- Webhook - Send traces to any HTTP endpoint