[BUG] OpenTelemetry: TypeError when CLAUDE_CODE_ENABLE_TELEMETRY is enabled - crashes Claude Code

Resolved 💬 3 comments Opened Dec 29, 2025 by okbrown Closed Feb 14, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When enabling telemetry via the CLAUDE_CODE_ENABLE_TELEMETRY environment variable, Claude Code crashes with a TypeError related to an invalid argument type.

What Should Happen?

Claude Code should function normally with telemetry enabled, sending telemetry data without crashing.

Error Messages/Logs

TypeError: The "authority" argument must be of type string, Object, or URL. Received type number (825110816)
      code: "ERR_INVALID_ARG_TYPE"

      at unknown:1:1
      at new ClientHttp2Session (node:http2:2557:19)
      at streamStart (node:http2:2259:44)

Steps to Reproduce

  1. Set environment variable CLAUDE_CODE_ENABLE_TELEMETRY=1 (or true)
  2. Launch Claude Code
  3. Perform any action that triggers telemetry
  4. Claude instance crashes/terminates unexpectedly

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.71

Claude Code Version

2.0.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Was testing OTEL with the following and latest docker version of the OTEL Collector.
https://opentelemetry.io/docs/collector/install/docker/

View original on GitHub ↗

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