gemini-cli/packages/core
Jerop Kipruto b443b5e800
Ensure telemetry events are flushed immediately (#1344)
The previous implementation used `flushIfNeeded` to batch most telemetry events, but it was not reliably sending them, leading to data loss. Notably, the `startSession` event, which already used `flushToClearcut`, was working correctly, indicating an issue with the batching logic itself.

This change replaces all calls to `flushIfNeeded` with `flushToClearcut` to align all event logging with the working `startSession` implementation and ensure that events are sent immediately. This prioritizes the reliability of data collection over network efficiency.

This is a temporary solution to prevent further data loss. The underlying issue with the batching mechanism in `flushIfNeeded` should be investigated and fixed in the future, at which point this change can be reverted.
2025-06-23 22:05:02 +00:00
..
src Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00
index.ts refactor: Use default centralized Flash & Pro models everywhere (#994) 2025-06-13 08:25:42 +00:00
package-lock.json Improvements to web-fetch tool (#1030) 2025-06-13 17:44:14 -07:00
package.json Improvements to web-fetch tool (#1030) 2025-06-13 17:44:14 -07:00
tsconfig.json Rename server->core (#638) 2025-05-30 18:25:47 -07:00
vitest.config.ts Set slice=true on tests to supress output. (#1168) 2025-06-19 15:27:00 -07:00