Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #587 Fix CLI telemetry opt-out #589

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading