gemini-cli/scripts
Jerop Kipruto 4421ef126f
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
2025-06-15 19:32:12 +00:00
..
bind_package_dependencies.js fix: point npmrc to dogfood artifact registry (#108) 2025-04-21 23:11:51 -07:00
bind_package_version.js fix(sandbox): add SHORT_SHA to image tag (#604) 2025-05-29 23:43:20 +00:00
build.js Avoid import.meta.dirname to be backwards compatible to Node.js 18+ (#1058) 2025-06-15 05:30:00 +00:00
build_package.js Windows: Refactor Shell Scripts to Node.js for Cross-Platform Compatibility (#784) 2025-06-09 12:19:42 -07:00
build_sandbox.js restricted networking for all sandboxing methods, new seatbelt profiles, updated docs, fixes to sandbox build, debugging through sandbox (#891) 2025-06-10 08:58:37 -07:00
check-build-status.js refactor: rename gemini-code to gemini-cli (#822) 2025-06-07 14:27:22 -07:00
clean.js Avoid import.meta.dirname to be backwards compatible to Node.js 18+ (#1058) 2025-06-15 05:30:00 +00:00
copy_bundle_assets.js Avoid import.meta.dirname to be backwards compatible to Node.js 18+ (#1058) 2025-06-15 05:30:00 +00:00
copy_files.js Refactor: Convert copy_files.cjs to ES module syntax 2025-05-18 23:49:48 -07:00
create_alias.sh Makefile for convenience (#833) 2025-06-07 22:22:32 -07:00
esbuild-banner.js fix(deps): externalize tree-sitter (#840) 2025-06-08 02:05:55 -07:00
example-proxy.js fixes to proxy on macos: prevent curl from hanging during wait-for-proxy by adding ipv6 support and timeout (#947) 2025-06-11 11:31:38 -07:00
generate-git-commit-info.js Avoid import.meta.dirname to be backwards compatible to Node.js 18+ (#1058) 2025-06-15 05:30:00 +00:00
local_telemetry.js Refactor: Use telemetry_utils.js in local_telemetry.js (#1066) 2025-06-15 19:32:12 +00:00
prepare-cli-packagejson.js feat(sandbox): use package config to dictate sandbox image name (#624) 2025-05-30 19:28:46 +00:00
publish-sandbox.js Windows: Refactor Shell Scripts to Node.js for Cross-Platform Compatibility (#784) 2025-06-09 12:19:42 -07:00
sandbox.js Windows: Refactor Shell Scripts to Node.js for Cross-Platform Compatibility (#784) 2025-06-09 12:19:42 -07:00
sandbox_command.js Remove warnings for old env var names. (#920) 2025-06-10 18:34:36 -07:00
setup-dev.js Windows: Refactor Shell Scripts to Node.js for Cross-Platform Compatibility (#784) 2025-06-09 12:19:42 -07:00
start.js Avoid import.meta.dirname to be backwards compatible to Node.js 18+ (#1058) 2025-06-15 05:30:00 +00:00
telemetry.js Add telemetry command and refactor telemetry settings (#1060) 2025-06-15 00:47:32 -04:00
telemetry_gcp.js Add telemetry command and refactor telemetry settings (#1060) 2025-06-15 00:47:32 -04:00
telemetry_utils.js Add telemetry command and refactor telemetry settings (#1060) 2025-06-15 00:47:32 -04:00