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

remove samplerate, as it is superseded by tracesSampler #960

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zwhitchcox
Copy link
Contributor

@zwhitchcox zwhitchcox commented Mar 7, 2025

@zwhitchcox zwhitchcox force-pushed the pr/remove-duplicate-samplerate branch 2 times, most recently from e63f9f0 to 4dbf12f Compare March 7, 2025 14:16
@zwhitchcox zwhitchcox force-pushed the pr/remove-duplicate-samplerate branch from 4dbf12f to 04890d5 Compare March 7, 2025 14:21
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! TIL!

@@ -10,7 +10,6 @@ export function init() {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
tracesSampleRate: process.env.NODE_ENV === 'production' ? 1 : 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to move this prod check to the tracesSampler function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants