From e772dc2b854dff3e9949ce4a16918e97d656d6a2 Mon Sep 17 00:00:00 2001 From: Jerop Kipruto Date: Sun, 15 Jun 2025 21:12:57 -0400 Subject: Decouple telemetry project ID configuration (#1077) #750 Renames project ID for telemetry from `GOOGLE_CLOUD_PROJECT` to `OTLP_GOOGLE_CLOUD_PROJECT`. This change allows for a separate Google Cloud Project to be used for telemetry data, distinct from the project used for other services like Vertex AI or Code Assist. This enhances clarity and flexibility in project configuration. --- scripts/telemetry_gcp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/telemetry_gcp.js b/scripts/telemetry_gcp.js index c88a9dbc..710fbe17 100755 --- a/scripts/telemetry_gcp.js +++ b/scripts/telemetry_gcp.js @@ -78,18 +78,18 @@ async function main() { originalSandboxSetting, ); - const projectId = process.env.GOOGLE_CLOUD_PROJECT; + const projectId = process.env.OTLP_GOOGLE_CLOUD_PROJECT; if (!projectId) { console.error( - 'šŸ›‘ Error: GOOGLE_CLOUD_PROJECT environment variable is not exported.', + 'šŸ›‘ Error: OTLP_GOOGLE_CLOUD_PROJECT environment variable is not exported.', ); console.log( ' Please set it to your Google Cloud Project ID and try again.', ); - console.log(' `export GOOGLE_CLOUD_PROJECT=your-project-id`'); + console.log(' `export OTLP_GOOGLE_CLOUD_PROJECT=your-project-id`'); process.exit(1); } - console.log(`āœ… Using Google Cloud Project ID: ${projectId}`); + console.log(`āœ… Using OTLP Google Cloud Project ID: ${projectId}`); console.log('\nšŸ”‘ Please ensure you are authenticated with Google Cloud:'); console.log( -- cgit v1.2.3