diff options
| author | Jerop Kipruto <[email protected]> | 2025-06-15 15:32:12 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-15 19:32:12 +0000 |
| commit | 4421ef126fc6a2de89132aa35c261bf78cd481d2 (patch) | |
| tree | c29cc958d8fdcccef2c05e1e0a048d5fcea72fe0 /packages/core/src/utils/fileUtils.ts | |
| parent | b67806ae9a99e5a3c449c60457933b47d14ba66c (diff) | |
Refactor: Use telemetry_utils.js in local_telemetry.js (#1066)
## TLDR
Refactors `scripts/local_telemetry.js` to use shared helper functions and constants from `scripts/telemetry_utils.js`.
## Dive Deeper
This change centralizes common telemetry-related logic, including:
- Binary downloading and management (`ensureBinary`)
- Reading and writing JSON files
- Waiting for network ports
- Managing workspace telemetry settings (`manageTelemetrySettings`)
- Process cleanup and signal handling (`registerCleanup`)
By using the shared utilities, `local_telemetry.js` becomes more concise and focused on its specific task of setting up the local OpenTelemetry and Jaeger environment.
## Docs
https://github.com/google-gemini/gemini-cli/blob/main/docs/core/telemetry.md#local-telemetry-with-jaeger-ui-for-traces
## Issue
#750
Diffstat (limited to 'packages/core/src/utils/fileUtils.ts')
0 files changed, 0 insertions, 0 deletions
