# Claude Code Monitoring (OpenTelemetry)

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Claude Code OpenTelemetry, Claude Code OTel, Claude Code telemetry

## 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.

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [OpenTelemetry (OTel)](https://learn.benibix.com/term/infrastructure/opentelemetry)
- [CLAUDE_CODE_ENABLE_TELEMETRY](https://learn.benibix.com/term/ai/claude-code-enable-telemetry-variable)
- [OTEL_LOG_USER_PROMPTS](https://learn.benibix.com/term/ai/otel-log-user-prompts-variable)
- [/usage Command](https://learn.benibix.com/term/ai/usage-command)
- [Claude Code Usage Limits](https://learn.benibix.com/term/ai/claude-code-usage-limits)

## Taught in

- [Claude Code Sessions](https://learn.benibix.com/learn/ai-claude-code/claude-code-sessions): Claude Code, 2/16

![On the left, three ways to sign in: a Claude plan through the browser, a Console API key, and a cloud provider such as Amazon Bedrock, Google Cloud or Microsoft Foundry. The plan path has a meter for a session window and a weekly window. On the right, Claude Code sends usage numbers out through OpenTelemetry to a dashboard.](https://learn.benibix.com/diagrams/ai8-cc-accounts.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-monitoring
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
