()
| 299 | }) |
| 300 | |
| 301 | function getFlushIntervalMs(): number { |
| 302 | // Allow tests to override to not block on the default flush interval. |
| 303 | return ( |
| 304 | parseInt(process.env.CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS || '', 10) || |
| 305 | DEFAULT_FLUSH_INTERVAL_MS |
| 306 | ) |
| 307 | } |
| 308 |