[BUG] Crashes after enabling OpenTelemetry v2.0.67
Resolved 💬 3 comments Opened Dec 12, 2025 by riya-amemiya Closed Dec 19, 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?
The same issue as in https://github.com/anthropics/claude-code/issues/7616 occurred in the latest version.
After enabling Opentelemetry via environment variables Claude Code started to crash
What Should Happen?
should not crash
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
- Configure OpenTelemetry settings such as OTEL_METRICS_EXPORTER and OTEL_EXPORTER_OTLP_ENDPOINT in claude/settings.json.
- Start using Claude Code
- crash :(
- But it doesn't crash immediately upon startup. After one or two conversations, it crashes 100% of the time.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.67
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
example settings.json
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_ENDPOINT": "foo",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",
"CLOUDSDK_AUTH_IMPERSONATE_SERVICE_ACCOUNT": "foo"
}
}This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗