Skip to main content

Telemetry

Usage telemetry configuration for Claude Code is documented in the Claude Code setup guide.

Overview

Telemetry enables PwC to track ROI, analyze usage patterns, and understand how AI coding assistants are being used across the organization. This data is essential for continued investment in these tools.

Metrics Collected

The following metrics are collected and sent to the PwC OTEL Collector:

MetricDescription
claude_code.session.countNumber of Claude Code sessions
claude_code.lines_of_code.countLines of code generated or modified
claude_code.commit.countNumber of git commits made during sessions
claude_code.cost.usageSession cost in dollars
claude_code.token.usageToken consumption (input and output)

These metrics help teams understand:

  • How frequently Claude Code is being used
  • The volume of code being generated
  • Cost efficiency and ROI
  • Usage trends over time

Privacy Considerations

The telemetry system collects only:

  • Aggregate usage metrics (session counts, token usage, costs)
  • Code volume metrics (lines changed, commits made)
  • Department and team identifiers you provide

The telemetry does not collect:

  • Actual code content
  • Conversation content
  • Personal identifiable information beyond team assignment
  • File names or project details

Troubleshooting

Telemetry Not Being Sent

  1. Check OTEL_EXPORTER_OTLP_HEADERS - This is the most common issue. Ensure this variable is set with the correct authorization header format:

    authorization=Bearer apikey=<key>&tenantid=<id>
  2. Verify CLAUDE_CODE_ENABLE_TELEMETRY is set to 1

  3. Ensure VPN connection - You must be connected to the PwC network (Italy VPN) to reach the OTEL collector endpoint

  4. Verify endpoint reachability:

    curl -I https://idi-coding-agents.pwc.it/health

Settings Not Loaded

  1. Check if ~/.claude/settings.json exists:

    ls -la ~/.claude/settings.json
  2. Verify the JSON syntax is valid:

    jq . ~/.claude/settings.json
  3. Restart Claude Code after making changes to settings.json