diff --git a/acceptance/telemetry/upload-skipped/script b/acceptance/telemetry/upload-skipped/script index a700f9eae..87c1f926d 100644 --- a/acceptance/telemetry/upload-skipped/script +++ b/acceptance/telemetry/upload-skipped/script @@ -1,6 +1,6 @@ export DATABRICKS_CLI_TELEMETRY_PID_FILE=./telemetry.pid export DATABRICKS_CLI_TELEMETRY_UPLOAD_LOGS_FILE=./out.upload_process.txt -export DATABRICKS_CLI_DISABLE_TELEMETRY="true" +export DATABRICKS_CLI_TELEMETRY_DISABLE="true" trace $CLI selftest send-telemetry diff --git a/libs/telemetry/upload.go b/libs/telemetry/upload.go index 72b68fc48..4569a6db1 100644 --- a/libs/telemetry/upload.go +++ b/libs/telemetry/upload.go @@ -24,7 +24,7 @@ const ( // Environment variable to disable telemetry. If this is set to any value, telemetry // will be disabled. - DisableEnvVar = "DATABRICKS_CLI_DISABLE_TELEMETRY" + DisableEnvVar = "DATABRICKS_CLI_TELEMETRY_DISABLE" // Max time to try and upload the telemetry logs. Useful for testing. UploadTimeout = "DATABRICKS_CLI_TELEMETRY_UPLOAD_TIMEOUT"