{"version":"2.0.10","anchor":"telemetry-flush-on-logout","canonical_anchor":"telemetry-flush-on-logout","heading":"Telemetry Flush on Logout","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.0.10\/e\/telemetry-flush-on-logout","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.0.10","markdown":"### Telemetry Flush on Logout\n\n**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):\n\n`export CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS=10000 claude` **Details:**\n\n- New `DEB()` async function handles telemetry flushing with timeout protection\n- Default timeout is 5000ms (vs 1000ms for shutdown)\n- Uses `Promise.race()` to enforce timeout\n- Flushes both trace provider and metrics provider\n- Logs success\/timeout\/error messages at appropriate levels\n- Integrated into logout flow via `IL0()` function\n- **Evidence**: `DEB()` at line 398367 in v2.0.10 (did not exist in v2.0.9)"}