Skip to content

Commit

Permalink
added trace intergration
Browse files Browse the repository at this point in the history
  • Loading branch information
syuChen1 committed Oct 31, 2021
1 parent c5d97b6 commit 6236367
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/config/plugins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require('dotenv').config({ path: '../.env' });
const Sentry = require('@sentry/node');
const Tracing = require('@sentry/tracing');

module.exports = () => ({
email: {
Expand All @@ -18,5 +20,7 @@ module.exports = () => ({
},
sentry: {
dsn: process.env.SENTRY_DNS || '',
integrations: [new Sentry.Integrations.Http({ tracing: true })],
tracesSampleRate: 1.0,
},
});

0 comments on commit 6236367

Please sign in to comment.