Skip to content
BENIBIX Learn

Claude Code Monitoring (OpenTelemetry)

AI⌨️ Claude CodeClaude Code Concepts

Also known as Claude Code OpenTelemetry, Claude Code OTel, Claude Code telemetry

Sends Claude Code use, cost and tool data to your own dashboard.

Think of it like

It is like a step counter on your wrist. It sends your numbers to an app so you can see them later.

Example

Emma's team turns this on for every laptop. A dashboard now shows tokens and cost per person each week.

Why it matters

A team cannot manage what it cannot see. Monitoring shows who uses Claude Code, how much and on what.

Definition

Claude Code can send numbers about its use to a tool you choose. It uses OpenTelemetry, a common way for apps to send data to a dashboard. You switch it on with one setting, then pick where the numbers and logs go. It can report sessions, tokens, cost and tool use. An admin can switch it on for a whole team at once.

Example code

bash
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_METRICS_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
claude
Turn it on, pick the format, and point it at your server.
Claude Code sends its use numbers out to your own dashboard.

Common mistake

Setting where to send the data but not the switch. Nothing is sent until the switch is set to 1.

Key takeaways

  1. 1
    Off by default. Turn it on with one setting.
  2. 2
    Your own tools. Sends to any OpenTelemetry backend.
  3. 3
    Team-wide. Admins set it in managed settings.

Learn it properly