Bringing Observability to Claude Code: OpenTelemetry in Action SigNoz and OpenTelemetry have been integrated to provide observability for Claude Code, an AI coding assistant, enabling teams to monitor token usage, costs, performance, and user behavior. The pipeline exports telemetry data into SigNoz dashboards, offering actionable insights for optimizing AI-assisted development workflows. Bringing Observability to Claude Code: OpenTelemetry in Action AI coding assistants like Claude Code are becoming core parts of modern development workflows. But as with any powerful tool, the question quickly arises: how do we measure and monitor its usage? Without proper visibility, it's hard to understand adoption, performance, and the real value Claude brings to engineering teams. For leaders and platform engineers, that lack of observability can mean flying blind when it comes to understanding ROI, productivity gains, or system reliability. That's where observability comes in. By leveraging OpenTelemetry and SigNoz, we built an observability pipeline that makes Claude Code usage measurable and actionable. From request volumes to latency metrics, everything flows into SigNoz dashboards, giving us clarity on how Claude is shaping developer workflows and helping us spot issues before they snowball. In this post, we'll walk through how we connected Claude Code's monitoring hooks with OpenTelemetry and exported everything into SigNoz. The result: a streamlined, data-driven way to shine a light on how developers actually interact with Claude Code and to help teams make smarter, evidence-backed decisions about scaling AI-assisted coding. Monitor Claude Code token usage, costs, and performance with OpenTelemetry and SigNoz — pre-built dashboards, no custom instrumentation needed. Get Started - Free https://signoz.io/teams/ Why Monitor Claude Code? Claude Code is powerful, but like any tool that slips seamlessly into a developer's workflow, it can quickly turn into a black box. You know people are using it, but how much, how effectively, and at what cost ? Without telemetry, you're left guessing whether Claude is driving real impact or just lurking quietly in the background. That's why monitoring matters. With the right observability pipeline https://signoz.io/guides/observability-pipeline/ , Claude Code stops being an invisible assistant and starts showing its true footprint in your engineering ecosystem. By tracking key logs and metrics in SigNoz dashboards, we can answer questions that directly tie usage to value: Total token usage & cost → How much are we spending, and where are those tokens going? Sessions, conversations & requests per user → Who's using Claude regularly, and what does “active usage” really look like? Quota visibility → How close are we to hitting limits like the 5-hour quota , and do we need to adjust capacity? Performance trends → From command duration over time to request success rate, are developers getting fast, reliable responses? Behavior insights → Which terminals are people using VS Code, Apple Terminal, etc. , how are decisions distributed accept vs. reject , and what tool types are most popular? Model distribution → Which Claude variants Sonnet, Opus, etc. are driving the most activity? Together, this info transforms Claude Code from “just another AI tool” into something measurable, transparent, and optimizable. Monitoring gives you the clarity to not only justify adoption but also to fine-tune how Claude fits into developer workflows. And that's where the observability stack comes in. OpenTelemetry and SigNoz give us the tools to capture this data, export them cleanly, and turn raw usage into actionable insights. Let's take a closer look at how they fit into the picture. OpenTelemetry and SigNoz: The Observability Power Duo What is OpenTelemetry? OpenTelemetry https://signoz.io/opentelemetry/ OTel is an open-source observability framework that makes it easy to collect telemetry data—traces, metrics, and logs—from across your stack. It's a CNCF project, widely adopted, and built with flexibility in mind. The key advantage? You instrument once, and your telemetry can flow to any backend you choose. No vendor lock-in and no tangled integrations. For Claude Code, this means we can capture usage and performance signals at a very granular level. Every request, every session, every token consumed can be traced and exported via OpenTelemetry. Instead of Claude Code being a black box, you now have standardized hooks to surface: how long requests take, how often they succeed, and which models or terminals are driving activity. What is SigNoz? SigNoz https://signoz.io/ is an all-in-one observability platform that pairs perfectly with OpenTelemetry. Think of it as the dashboard and analysis layer. The place where all your Claude Code telemetry comes to life. With SigNoz, you can visualize logs and metrics in real time, slice usage data by user or model, and set alerts when things go wrong. In our case, that means building dashboards that track: Token usage & costs over time Requests per user and per terminal type Command durations and success rates Model distributions e.g., Sonnet vs Opus User decisions accept vs reject By combining OpenTelemetry's standardized data collection with SigNoz's rich visualization and alerting, you get a complete observability stack https://signoz.io/guides/observability-stack/ for Claude Code. The result is not just raw logs and metrics. It's a full picture of Claude Code in action, right where you need it. Monitoring Claude Code As you'll see below, Claude Code exports its telemetry through OTLP https://signoz.io/blog/what-is-otlp/ , the standard protocol for OpenTelemetry, so it lands in any OTLP backend like SigNoz alongside the rest of your observability data with no proprietary agent required. This is part of a broader 2026 pattern of developer and AI tools emitting OpenTelemetry directly. Where telemetry covers model interactions, the GenAI semantic conventions the gen ai. attributes for model, token usage, and tool calls standardize how they are recorded, which you can see in action in our guide to observing LLM applications with OpenTelemetry https://signoz.io/blog/opentelemetry-llm/ . Check out the Claude Code monitoring guide https://signoz.io/docs/claude-code-monitoring/ for detailed instructions on setting up OpenTelemetry instrumentation. Option 1 VSCode Step 1: Launch VSCode with telemetry enabled CLAUDE CODE ENABLE TELEMETRY=1 \ OTEL METRICS EXPORTER=otlp \ OTEL LOGS EXPORTER=otlp \ OTEL EXPORTER OTLP PROTOCOL=grpc \ OTEL EXPORTER OTLP ENDPOINT="https://ingest.