gemini-cli/packages/core/src
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
..
__mocks__/fs Rename server->core (#638) 2025-05-30 18:25:47 -07:00
code_assist point Code Assist client to prod server (#1201) 2025-06-21 22:25:18 +00:00
config refactor: rename `disableDataCollection` to `dataCollectionEnabled` (#1319) 2025-06-23 21:19:40 +00:00
core Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00
services Provide a .gitconfig for shadow repos (#1294) 2025-06-22 00:13:03 -04:00
telemetry Ensure telemetry events are flushed immediately (#1344) 2025-06-23 22:05:02 +00:00
tools Sanitize MCP FunctionDeclarations to workaround Vertex bug (#1330) 2025-06-23 09:13:53 -07:00
utils Remove .gitignore logging from startup. (#1323) 2025-06-23 11:12:42 -07:00
index.test.ts Rename server->core (#638) 2025-05-30 18:25:47 -07:00
index.ts Auth First Run (#1207) 2025-06-19 16:52:22 -07:00