-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from lrdiv/sentry
Sentry config fixes
- Loading branch information
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import Sentry from '@sentry/node'; | ||
import * as Sentry from '@sentry/node'; | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
|
||
Sentry.init({ | ||
dsn: 'https://c0355c18b86a8fcba144b81b086635a2@o4508644576002048.ingest.us.sentry.io/4508644576329728', | ||
integrations: [nodeProfilingIntegration()], | ||
tracesSampleRate: 1.0, // Capture 100% of the transactions | ||
profilesSampleRate: 1.0, | ||
enabled: process.env.NODE_ENV === 'production', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters