[BUG] claude_code.active_time.total metric is not collected when using Claude Code in the VS Code extension
Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened May 9, 2026 · closed Jun 7, 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 using Claude Code through the VS Code extension with OpenTelemetry / metrics collection enabled, the claude_code.active_time.total metric is not collected or exported.
Other Claude Code metrics appear to be collected normally, but claude_code.active_time.total is missing from the exported METRICS data when the session is started from VS Code.
What Should Happen?
The metric claude_code.active_time.total should be present and should increase according to the active time spent using Claude Code in the VS Code extension
Error Messages/Logs
Steps to Reproduce
- Enable OpenTelemetry / metrics collection for Claude Code.
- Open VS Code.
- Use Claude Code from the VS Code extension.
- Run an active Claude Code session for some time.
- Check the exported METRICS output.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.1.137
Platform
Other
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗