Preflight Checklist
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
Preflight Checklist
What's Wrong?
When using Claude Code through the VS Code extension with OpenTelemetry / metrics collection enabled, the
claude_code.active_time.totalmetric is not collected or exported.Other Claude Code metrics appear to be collected normally, but
claude_code.active_time.totalis missing from the exported METRICS data when the session is started from VS Code.What Should Happen?
The metric
claude_code.active_time.totalshould be present and should increase according to the active time spent using Claude Code in the VS Code extensionError Messages/Logs
Steps to Reproduce
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