diff --git a/packages/cli/src/global_telemetry.ts b/packages/cli/src/global_telemetry.ts index 2d9ba45261..fd48730bb4 100644 --- a/packages/cli/src/global_telemetry.ts +++ b/packages/cli/src/global_telemetry.ts @@ -13,8 +13,8 @@ const {version} = require('../package.json') const root = path.resolve(__dirname, '../package.json') const isDev = process.env.IS_DEV_ENVIRONMENT === 'true' -const isDisabled = process.env.DISABLE_TELEMETRY === 'true' -const canSendTelemetry = !isDisabled +const isTelemetryDisabled = process.env.DISABLE_TELEMETRY === 'true' +const canSendTelemetry = !isTelemetryDisabled function getToken() { const config = new Config({root}) diff --git a/packages/cli/test/unit/global_telemetry.unit.test.ts b/packages/cli/test/unit/global_telemetry.unit.test.ts index a23c4ca506..b2b91d0b40 100644 --- a/packages/cli/test/unit/global_telemetry.unit.test.ts +++ b/packages/cli/test/unit/global_telemetry.unit.test.ts @@ -118,17 +118,4 @@ describe('telemetry', async () => { await telemetry.sendToRollbar(mockRollbarError) rollbarAPI.done() }) - - it('disables telemetry request from honeycomb and rollbar', async () => { - process.env.DISABLE_TELEMETRY = 'true' - const mockTelemetry = telemetry.setupTelemetry(mockConfig, mockOpts) - telemetry.initializeInstrumentation() - - // const honeycombAPI = nock(`${isDev ? 'https://backboard-staging.herokuapp.com/otel' : 'https://backboard.heroku.com/otel'}`) - // .post('/v1/traces', identity) - // .reply(200) - - await telemetry.sendTelemetry(mockTelemetry!) - // honeycombAPI.done() - }) })