[BUG] Error: Unknown protocol set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL

Resolved 💬 10 comments Opened May 21, 2025 by channingwalton Closed Jun 27, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: ?
  • Operating System: macOs 10.15.5
  • Terminal: ghostty
  • Node.js v23.11.0

Bug Description

After using Claude today it said that was an upgrade so I quit and restarted Claude, but it fails with:

Error: Unknown protocol set in OTEL_EXPORTER_OTLP_METRICS_PROTOCOL or OTEL_EXPORTER_OTLP_PROTOCOL env var: undefined
    at jT5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1453:6529)
    at xT5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1453:7131)
    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1453:7874

Steps to Reproduce

  1. Upgrade claude
  2. run claude

Expected Behaviour

No crash

Actual Behavior

crash

Additional Context

I tried deleting and reinstalling but got the same issue.

View original on GitHub ↗

This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗