[BUG] OpenTelemetry config issue : OTEL_RESOURCE_ATTRIBUTES custom attributes are not flowing to our otel
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?
Hi Team,
We are currently configuring OpenTelemetry (OTEL) monitoring for our organization. The standard metrics are working as expected. However, we would like to include a custom user.id tag along with some additional custom tags.
We tried using OTEL_RESOURCE_ATTRIBUTES based on the example snippet, but it doesn’t seem to be working. We are using the settings.json approach to read variables.
Could you please assist us in resolving this issue?
Thank you!
What Should Happen?
Use shall be able to pass custom tag and if possible overwrite the existing tag of user.id as well.
Error Messages/Logs
Steps to Reproduce
Post updating the config file custom metrics are not following to our otel
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
2.0.30
Claude Code Version
2.0.30
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗