Skip to technology filters Skip to main content
Dynatrace Hub

Extend the platform,
empower your team.

Popular searches:
Home hero bg
Claude Code Agent monitoringClaude Code Agent monitoring
Claude Code Agent monitoring

Claude Code Agent monitoring

Monitor your Claude Code coding agents with OTel

Technology
Free trialDocumentation
Claude code agent monitoring metrics
  • Product information

Overview

Claude Code Monitoring provides end-to-end visibility into Claude Code CLI usage using its built-in OpenTelemetry telemetry output. The included dashboard helps engineering and AI leaders understand:

  • Spend and token consumption over time
  • Session volume and active time
  • API request health (errors, latency, volume)
  • Tool activity (tool calls, permission decisions, success rate, duration)
  • Engineering output indicators (commits, PRs, lines added/removed)

What you’ll see (dashboard tiles & why it matters)

The dashboard summarizes

Total Users, Total Cost (USD), Total Tokens, Total Sessions, and Active Time to quantify adoption and spend.
It shows cost over time and token usage over time to spot spikes and trends.
It breaks down event volume by type (api_request, api_error, tool_decision, tool_result, user_prompt) to understand where activity and failures occur.

Engineering output signals include
  • Lines of Code Added/Removed, Total Commits, Total PRs, plus LoC over time and PRs over time to correlate usage with delivery.
API analytics cover
  • Cost by model, token & cost by model, and API latency over time (avg duration) to pinpoint expensive or slow model usage.
Tooling insights include:
  • Most used tools (e.g., bash/read/edit/write), avg tool duration, permission decisions (allow/deny), and tool success rate (success/failure) to validate safety and reliability.
User activity include:
  • Avg session time, avg cost per session, avg tokens per request, and sessions by user for adoption and accountability.
A recent event stream
  • Supports debugging and drilldown of prompts, tool calls and session information

Use cases

How teams use these insights

  • FinOps & governance: track spend/tokens by model, detect runaway sessions, and define guardrails (budgets, thresholds, adoption controls).
  • Reliability & performance: monitor latency, request volume, and errors to catch degradation during peaks or provider incidents.
  • Tool effectiveness & safety: verify tool success, duration, and permission decisions to ensure guardrails work as intended.
  • Adoption & productivity: measure usage and correlate it with PRs/commits/LoC changes to evaluate AI transformation impact.

Get started

  1. Enable telemetry: CLAUDE_CODE_ENABLE_TELEMETRY=1.
  2. Configure OTLP export to your Dynatrace OTLP endpoint (direct or via an OpenTelemetry Collector).
  3. Run Claude Code — telemetry is emitted automatically (no code changes).
  4. Open the dashboard to review cost, tokens, sessions, tool activity, and reliability signals.
  5. For setup examples, dashboard and configuration details, go to GitHub: https://github.com/dynatrace-oss/dynatrace-ai-agent-instrumentation-examples/tree/main/claude-code.

Details

Requirements

  • Claude Code CLI with built-in OpenTelemetry telemetry support
  • Dynatrace environment with OTLP ingest available
  • Network access from developer machine/runner to Dynatrace OTLP endpoint (direct or via collector)
Dynatrace
DocumentationMore Information
By Dynatrace
Dynatrace support center
Copy to clipboard

Related to Claude Code Agent monitoring

Claude Code CLI logo

Claude Code CLI

Boost developer productivity to get real-time, code-level insights into your CLI

AI Observability logo

AI Observability

End-to-end observability for your Agentic AI and LLM workloads

Claude Connector for Workflows logo

Claude Connector for Workflows

Connect with Claude and send prompts for further analysis using Workflows.

Dynatrace Hub
Get data into DynatraceBuild your own app
Dynatrace Intelligence - Agentic Operations SystemThe Dynatrace Agentic AI ecosystem
All (871)Log Management and AnalyticsKubernetesAI and LLM ObservabilityInfrastructure ObservabilitySoftware DeliveryApplication ObservabilityApplication SecurityBusiness ObservabilityDigital Experience
Filter
Type
Built and maintained by
Deployment model
SaaS
  • SaaS
  • Managed
Partner FinderBecome a partnerDynatrace Developer

Discover recent additions to Dynatrace

Problems logo

Problems

Detect, explain and triage problems automatically using Dynatrace Intelligence.

Logs logo

Logs

Explore all your logs without writing a single query.

Investigations logo

Investigations

Fast and precise incident response on Grail data with DQL queries.

Business Flow logo

Business Flow

Track, analyze, and optimize your critical business processes.

Cost & Carbon Optimization logo

Cost & Carbon Optimization

Track, analyze, and optimize your IT carbon footprint and public cloud costs.

Anomaly Detection logo

Anomaly Detection

Detect and alert on anomalies and custom patterns using any DQL time series.

Analyze your data

Understand your data better with deep insights and clear visualizations.

Notebooks logo

Notebooks

Create powerful, data-driven documents for custom analytics and collaboration.

Dashboards logo

Dashboards

Transform complex data into clear visualizations with custom dashboards.

Automate your processes

Turn data and answers into actions, securely, and at scale.

Workflows logo

Workflows

Automate tasks in your IT landscape and move towards autonomous operations.

Jira logo

Jira

Create, query, comment, transition, and resolve Jira tickets within workflows.

Slack logo

Slack

Automate Slack messaging for security incidents, attacks, remediation, and more.

Secure your cloud application

See vulnerabilities and attacks in your environment.

Security Posture Management logo

Security Posture Management

Detect, prioritize, and remediate security and compliance findings with SPM.

Threats & Exploits logo

Threats & Exploits

Understand, triage, and investigate detection findings and alerts.

More resources

Observability for Developers on Cursor logo

Observability for Developers on Cursor

Get Real time Code-Level data directly to your Cursor IDE

GitHub Copilot Coding Agent logo

GitHub Copilot Coding Agent

Automate vulnerability remediation and boost developer productivity

GitHub Copilot Custom Agent logo

GitHub Copilot Custom Agent

Automate your development workflows with specialized agent definitions

Observability for Developer on JetBrains logo

Observability for Developer on JetBrains

Get real-time code-level data directly to your Jetbrains IDE

Pagerduty for Dynatrace Workflows logo

Pagerduty for Dynatrace Workflows

Streamline incident management with automated Pageruty workflows

Cursor IDE logo

Cursor IDE

Boost developer productivity and get real-time, code-level insights into Cursor

Observability for Developers on Windsurf logo

Observability for Developers on Windsurf

Get real-time code-level data directly to your Windsurf IDE

Are you looking for something different?

We have hundreds of apps, extensions, and other technologies to customize your environment

Leverage our newest innovations of Dynatrace Saas

Kick-start your app creation

Kick-start your app creation

Whether you’re a beginner or a pro, Dynatrace Developer has the tools and support you need to create incredible apps with minimal effort.
Go to Dynatrace Developer
Upgrading from Dynatrace Managed to SaaS

Upgrading from Dynatrace Managed to SaaS

Drive innovation, speed, and agility in your organization by seamlessly and securely upgrading.
Learn More
Log Management and Analytics

Log Management and Analytics

Innovate faster and more efficiently with unified log management and log analytics for actionable insights and automation.
Learn more