-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Sentry error and release tracking
- Loading branch information
Showing
6 changed files
with
301 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import * as Sentry from "@sentry/node"; | ||
// import * as Tracing from "@sentry/tracing"; | ||
|
||
console.log(process.env.SENTRY_INGEST); | ||
|
||
Sentry.init({ | ||
dsn: process.env.SENTRY_INGEST, | ||
environment: process.env.NODE_ENV, | ||
integrations: [ | ||
// enable HTTP calls tracing | ||
// new Sentry.Integrations.Http({ tracing: true }), | ||
new Sentry.Integrations.OnUncaughtException(), | ||
new Sentry.Integrations.OnUnhandledRejection(), | ||
// enable Express.js middleware tracing | ||
// new Tracing.Integrations.Express({ app }), | ||
], | ||
|
||
// Set tracesSampleRate to 1.0 to capture 100% | ||
// of transactions for performance monitoring. | ||
// We recommend adjusting this value in production | ||
tracesSampleRate: 0.2, | ||
}); | ||
|
||
export default Sentry; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.