gemini-cli/packages/core
Jerop Kipruto 95e4a60a83
Telemetry: Auto-export to GCP if GOOGLE_CLOUD_PROJECT is set (#1003)
This change simplifies telemetry setup for users who want to integrate with GCP, as they no longer need to configure a local collector or an explicit endpoint if their project is already set up in the environment.

This change updates the telemetry system to automatically export traces, logs, and metrics to Google Cloud Platform (GCP) if the `GOOGLE_CLOUD_PROJECT` environment variable is set and no explicit `telemetryOtlpEndpoint` is configured by the user.

Key changes:
-   The default `telemetryOtlpEndpoint` in `Config` is now an empty string.
-   The `initializeTelemetry` SDK logic now prioritizes:
    -  User-defined `telemetryOtlpEndpoint`.
    -  `GOOGLE_CLOUD_PROJECT` for direct GCP export.
    -  Console exporters as a fallback.
-   If an invalid `telemetryOtlpEndpoint` is provided, it falls back to console exporters with a warning.

#750
2025-06-13 03:51:41 -04:00
..
src Telemetry: Auto-export to GCP if GOOGLE_CLOUD_PROJECT is set (#1003) 2025-06-13 03:51:41 -04:00
README.md refactor: rename gemini-code to gemini-cli (#822) 2025-06-07 14:27:22 -07:00
index.ts Rename server->core (#638) 2025-05-30 18:25:47 -07:00
package.json Improve some tools to support abortSignal (#997) 2025-06-12 19:46:00 -07:00
tsconfig.json Rename server->core (#638) 2025-05-30 18:25:47 -07:00
vitest.config.ts Reduce coupling between core and cli packages (#961) 2025-06-12 17:17:29 -07:00

README.md

Nested package template. Either fill this out with "backend" functionality or create similar packages that you want built separate from the CLI.

To use this package from another dependent package in this monorepo:

  1. Add "@gemini-cli/core" to the dependent package's package.json
  2. Import a dependency by calling import { } from "@gemini-cli/core"