Sentry is an application monitoring platform that helps developers identify and fix issues in real-time. With Sentry’s AI monitoring capabilities, you can track LLM performance and errors.
In Sentry, navigate to your project’s SDK setup:
/v1/traces)Go to Settings > Observability and toggle Enable Broadcast.

Click the edit icon next to Sentry and enter:
https://o123.ingest.us.sentry.io/api/456/integration/otlp/v1/traces)https://abc123@o123.ingest.us.sentry.io/456)Click Test Connection to verify the setup. The configuration only saves if the test passes.
Make an API request through OpenRouter and view the trace in Sentry’s Performance or Traces view.

Sentry uses OpenTelemetry for trace ingestion. The OTLP endpoint and DSN are both required for proper authentication and trace routing.
Sentry receives traces via the OTLP protocol. Custom metadata from the trace field is sent as span attributes and can be used for filtering and analysis in Sentry’s Performance view.
trace are included as span attributes under the trace.metadata.* namespaceuser field maps to user.id in span attributessession_id field maps to session.id in span attributesparent_span_idWhen Privacy Mode is enabled for this destination, prompt and completion content is excluded from traces. All other trace data — token usage, costs, timing, model information, and custom metadata — is still sent normally. See Privacy Mode for details.