What's wrong with this entry?
Anonymous. No account, no email.
What: Telemetry data is now properly flushed when logging out, with configurable timeout How to use: Set the CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS environment variable to control flush timeout (default: 5000ms):
export CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS=10000
claude
Details:
- New
DEB()async function handles telemetry flushing with timeout protection - Default timeout is 5000ms (vs 1000ms for shutdown)
- Uses
Promise.race()to enforce timeout - Flushes both trace provider and metrics provider
- Logs success/timeout/error messages at appropriate levels
- Integrated into logout flow via
IL0()function - Evidence:
DEB()at line 398367 in v2.0.10 (did not exist in v2.0.9)