{"slug": "openrouter-observability-monitoring-with-opentelemetry", "title": "OpenRouter Observability & Monitoring with OpenTelemetry", "summary": "SigNoz has released a guide for setting up OpenRouter observability using OpenTelemetry, enabling developers to track LLM API requests, latency, and usage across multiple models in unified dashboards. The integration allows users to configure alerts on latency and errors by broadcasting traces from OpenRouter to an OpenTelemetry Collector and exporting them to SigNoz cloud or self-hosted instances. This observability setup aims to help teams monitor every model request and gain actionable insights to improve reliability and responsiveness in AI workflows.", "body_md": "What is OpenRouter Observability?\n\nOpenRouter observability gives you full visibility into your LLM API routing across multiple models. This guide walks you through setting up OpenRouter monitoring using [OpenTelemetry](https://opentelemetry.io/) and exporting traces to SigNoz, so you can track requests, latency, and usage across your OpenRouter applications.\n\nWith full OpenRouter observability in SigNoz, you can correlate traces across your AI and LLM workflows, configure alerts on latency and errors, and gain actionable insights to continuously improve reliability and responsiveness. SigNoz brings your OpenRouter telemetry into unified dashboards so you can monitor every model request in one place.\n\nPrerequisites\n\n- A\n[SigNoz Cloud account](https://signoz.io/teams/)with an active ingestion key or[Self Hosted SigNoz instance](https://signoz.io/docs/install/self-host/) - Internet access to access OpenRouter API and send telemetry data to SigNoz Cloud\n- An\n[OpenRouter account](https://openrouter.ai/)and OpenRouter API key. You can get it from the[OpenRouter API Keys page](https://openrouter.ai/settings/keys).\n\nSet Up OpenRouter Observability with OpenTelemetry\n\nStep 1: Configure broadcasting traces from OpenRouter to OTel Collector\n\nFor more information on setting up traces from OpenRouter refer to the [OpenRouter broadcast guide](https://openrouter.ai/docs/guides/features/broadcast/otel-collector).\n\nEnable Broadcast in OpenRouter\n\nGo to [Settings > Observability](https://openrouter.ai/settings/observability) and toggle Enable Broadcast.\n\nConfigure OpenTelemetry Collector\n\nClick 'Add Destination +' next to the OpenTelemetry Collector entry\n\nand enter:\n\n**Endpoint**:`https://ingest.<region>.signoz.cloud:443/v1/traces`\n\n**Headers**:\n\n```\n{\n  \"signoz-ingestion-key\": \"<your-ingestion-key>\"\n}\n```\n\n`<region>`\n\n: Your[SigNoz Cloud region](https://signoz.io/docs/ingestion/signoz-cloud/overview/#endpoint)`<your-ingestion-key>`\n\n: Your SigNoz[ingestion key](https://signoz.io/docs/ingestion/signoz-cloud/keys/)\n\nFor self-hosted collector:\n\n- Deploy your OpenTelemetry Collector with an OTLP receiver\n- Configure the receiver to listen on a publicly accessible endpoint\n- Add the endpoint URL\n- Remove the ingestion key header as shown in\n[Cloud → Self-Hosted](https://signoz.io/docs/ingestion/cloud-vs-self-hosted#cloud-to-self-hosted).\n\nTest and Save\n\nClick Test Connection to verify the setup. Once there is a success message, click the \"Add\" button.\n\nOnce configured, your OpenRouter calls are traced and sent to SigNoz.\n\nStep 2: Use the OpenRouter API\n\nFor more information on getting started with OpenRouter in your environment, refer to the [OpenRouter quickstart guide](https://openrouter.ai/docs/quickstart).\n\n``` python\nimport requests\nimport json\n\nresponse = requests.post(\n  url=\"https://openrouter.ai/api/v1/chat/completions\",\n  headers={\n    \"Authorization\": \"Bearer <OPENROUTER_API_KEY>\",\n    \"HTTP-Referer\": \"<YOUR_SITE_URL>\", # Optional. Site URL for rankings on openrouter.ai.\n    \"X-Title\": \"<YOUR_SITE_NAME>\", # Optional. Site title for rankings on openrouter.ai.\n  },\n  data=json.dumps({\n    \"model\": \"openai/gpt-5.2\", # Optional\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"What is SigNoz?\"\n      }\n    ]\n  })\n)\nfetch('https://openrouter.ai/api/v1/chat/completions', {\n  method: 'POST',\n  headers: {\n    Authorization: 'Bearer <OPENROUTER_API_KEY>',\n    'HTTP-Referer': '<YOUR_SITE_URL>', // Optional. Site URL for rankings on openrouter.ai.\n    'X-Title': '<YOUR_SITE_NAME>', // Optional. Site title for rankings on openrouter.ai.\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    model: 'openai/gpt-5.2',\n    messages: [\n      {\n        role: 'user',\n        content: 'What is SigNoz',\n      },\n    ],\n  }),\n});\ncurl https://openrouter.ai/api/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Authorization: Bearer $OPENROUTER_API_KEY\" \\\n  -d '{\n  \"model\": \"openai/gpt-5.2\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"What is SigNoz?\"\n    }\n  ]\n}'\n```\n\nView OpenRouter Traces in SigNoz\n\nOnce configured, your OpenRouter application automatically emits traces.\n\nOpenRouter traces are available in SigNoz under the Traces tab:\n\nWhen you click on a trace in SigNoz, you'll see a detailed view of the trace, including all associated spans, along with their events and attributes.\n\nTroubleshooting OpenRouter Observability\n\n[Troubleshooting OpenRouter Observability](#troubleshooting-openrouter-observability)\n\nIf you don't see your telemetry data:\n\n**Verify network connectivity**- Ensure your application can reach OpenRouter API and SigNoz Cloud endpoints** Check ingestion key**- Verify your SigNoz ingestion key is correct** Wait for data**- OpenTelemetry batches data before sending, so wait 10-30 seconds after making API calls\n\nOpenRouter Monitoring Dashboard\n\nThe [OpenRouter Dashboard Template](https://signoz.io/docs/dashboards/dashboard-templates/openrouter-dashboard/) provides ready-made visualizations for monitoring OpenRouter usage. It includes pre-built charts for LLM request volume, token usage, and cost, along with import instructions to get started quickly.\n\nSetup OpenTelemetry Collector (Optional)\n\n[Setup OpenTelemetry Collector (Optional)](#setup-opentelemetry-collector-optional)\n\nWhat is the OpenTelemetry Collector?\n\nThink of the OTel Collector as a middleman between your app and SigNoz. Instead of your application sending data directly to SigNoz, it sends everything to the Collector first, which then forwards it along.\n\nWhy use it?\n\n**Cleaning up data**— Filter out noisy traces you don't care about, or remove sensitive info before it leaves your servers.** Keeping your app lightweight**— Let the Collector handle batching, retries, and compression instead of your application code.** Adding context automatically**— The Collector can tag your data with useful info like which Kubernetes pod or cloud region it came from.** Future flexibility**— Want to send data to multiple backends later? The Collector makes that easy without changing your app.\n\nSee [Switch from direct export to Collector](https://signoz.io/docs/opentelemetry-collection-agents/opentelemetry-collector/switch-to-collector/) for step-by-step instructions to convert your setup.\n\nFor more details, see [Why use the OpenTelemetry Collector?](https://signoz.io/docs/opentelemetry-collection-agents/opentelemetry-collector/why-to-use-collector/) and the [Collector configuration guide](https://signoz.io/docs/opentelemetry-collection-agents/opentelemetry-collector/configuration/).\n\nAdditional resources:\n\n- Set up\n[alerts](https://signoz.io/docs/product-features/alert-management)for high latency or error rates - Learn more about\n[querying traces](https://signoz.io/docs/product-features/trace-explorer) - Explore\n[log correlation](https://signoz.io/docs/product-features/logs-explorer)", "url": "https://wpnews.pro/news/openrouter-observability-monitoring-with-opentelemetry", "canonical_source": "https://signoz.io/docs/openrouter-observability", "published_at": "2026-06-01 00:00:00+00:00", "updated_at": "2026-06-04 12:55:58.556324+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-tools", "ai-infrastructure", "mlops"], "entities": ["OpenRouter", "OpenTelemetry", "SigNoz", "LLM"], "alternates": {"html": "https://wpnews.pro/news/openrouter-observability-monitoring-with-opentelemetry", "markdown": "https://wpnews.pro/news/openrouter-observability-monitoring-with-opentelemetry.md", "text": "https://wpnews.pro/news/openrouter-observability-monitoring-with-opentelemetry.txt", "jsonld": "https://wpnews.pro/news/openrouter-observability-monitoring-with-opentelemetry.jsonld"}}