Skip to content

Commit

Permalink
fix: #587 Fix CLI telemetry opt-out
Browse files Browse the repository at this point in the history
  • Loading branch information
mkleszcz committed Jun 24, 2024
1 parent 181bcab commit f022523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/internal/cli/src/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const ENV_STAGE_LOCAL = 'local';
export const IS_CI = Boolean(process.env.CI ?? false);

export const SB_TELEMETRY_DISABLED =
IS_CI || (Boolean(process.env.SB_TELEMETRY_DISABLED) ?? false);
IS_CI || process.env.SB_TELEMETRY_DISABLED == '1';
export const SB_TELEMETRY_DEBUG =
IS_CI || (Boolean(process.env.SB_TELEMETRY_DEBUG) ?? false);
IS_CI || process.env.SB_TELEMETRY_DEBUG == '1';

export const SB_TELEMETRY_URL = process.env.SB_TELEMETRY_URL ?? sbTelemetry[0];

Expand Down
2 changes: 1 addition & 1 deletion packages/internal/cli/src/config/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const provider = new NodeTracerProvider({
[SemanticResourceAttributes.OS_TYPE]: os.type(),
[SemanticResourceAttributes.OS_DESCRIPTION]: os.release(),
[SemanticResourceAttributes.OS_VERSION]: os.version(),
})
}),
),
});

Expand Down

0 comments on commit f022523

Please sign in to comment.