[BUG] Crashes after enabling OpenTelemetry

Resolved 💬 2 comments Opened Sep 15, 2025 by secustor Closed Nov 12, 2025

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?

After enabling Opentelemetry via environment variables Claude Code ( 1.0.113 ) started to crash

OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_PROTOCOL=grpc
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
OTEL_METRIC_EXPORT_INTERVAL=10000
CLAUDE_CODE_ENABLE_TELEMETRY=1

What Should Happen?

Claude Code should not crash

Error Messages/Logs

142 |     throw @makeErrorWithCode(82, value, name);
143 |   if (!isConnectionHeaderAllowed(name, value))
144 |     connectionHeaderMessageWarn();
145 | }
146 | function assertIsObject(value, name, types) {
147 |     throw @makeErrorWithCode(114, name, types || "Object", value);
                                                                       ^
TypeError: The "authority" argument must be of type string, Object, or URL. Received type number (825110816)
      at new ClientHttp2Session (node:http2:147:66)

Bun v1.2.19 (macOS arm64)
ERROR: exit status 1

Steps to Reproduce

  1. Export environment variables
  2. Setup a OTEL collector
  3. Start using Claude Code

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.0.113

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

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