Claude Code now supports exporting usage data through OpenTelemetry, allowing developers to track costs and tool utilization within their own observability stacks. This feature requires setting specific environment variables, such as CLAUDE_CODE_ENABLE_TELEMETRY=1, and configuring an exporter. The telemetry data can be broken down by model, subagent, skill, and MCP server, providing insights into cost drivers. While cost figures are local estimates, this functionality offers a more comprehensive view of usage compared to per-machine metrics, especially for teams. AI
IMPACT Enhances developer visibility into AI tool usage and costs, enabling better resource management and optimization within development workflows.
RANK_REASON This item describes a new feature for an existing product (Claude Code) that enhances its observability and cost-tracking capabilities, rather than a novel model release or significant industry-wide event.
Read on dev.to — Claude Code tag →
- Amazon Bedrock
- Claude Code
- Claude Code Analytics API
- CLAUDE_CODE_ENABLE_TELEMETRY
- Google.Cloud
- Microsoft Foundry
- OpenTelemetry
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_HEADERS
- OTEL_EXPORTER_OTLP_PROTOCOL
- OTEL_LOGS_EXPORTER
- OTEL_METRICS_EXPORTER
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →