Skip to content

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!

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

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!

@kentcdodds kentcdodds merged commit 0c2f447 into epicweb-dev:main Mar 22, 2025
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