[FEATURE] Optionally send current git repo org and name along with OTEL attributes
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
As a large enterprise customer using Bedrock for Claude Code, we want to see which projects people are using Claude Code on. However, this is currently not sent in the OTEL mterics, nor is there a way to add it since the otel attributes header is static and cannot be modified through a hook.
For privacy, it's better to not send the path Claude is running on, so a safe alternative for us is just the repositorie's name + org. This could be an opt-in feature for OTEL.
Proposed Solution
Add OTEL_LOG_REPO_DETAILS and when set to 1 send the information by appending it to the OTEL attributes.
Alternative Solutions
I tried hooks, but I couldn't add it to the header.
I tried a dynamic script but (for us) that's only run at Claude code install, not per session.
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
Example scenario: we suspect certain repos are configured really well for claude and others are not. To drive adoption, we want to see the difference in usage across repos.
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗