summaryrefslogtreecommitdiff
path: root/scripts/telemetry_gcp.js
diff options
context:
space:
mode:
authorJerop Kipruto <[email protected]>2025-06-15 21:12:57 -0400
committerGitHub <[email protected]>2025-06-16 01:12:57 +0000
commite772dc2b854dff3e9949ce4a16918e97d656d6a2 (patch)
tree234a5fc4afe0e7d32e6103ddf3b981a8ba725d9c /scripts/telemetry_gcp.js
parent5c8e49a0e3e84ea8d04f26201beb2f980e0a3951 (diff)
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.
Diffstat (limited to 'scripts/telemetry_gcp.js')
-rwxr-xr-xscripts/telemetry_gcp.js8
1 files changed, 4 insertions, 4 deletions
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(