Added Sentry prisma integration
This commit is contained in:
parent
0c7c294823
commit
d51b063918
@ -54,13 +54,16 @@ Sentry.init({
|
|||||||
// enable HTTP calls tracing
|
// enable HTTP calls tracing
|
||||||
new Sentry.Integrations.Http({ tracing: true }),
|
new Sentry.Integrations.Http({ tracing: true }),
|
||||||
// enable Express.js middleware tracing
|
// enable Express.js middleware tracing
|
||||||
new Tracing.Integrations.Express({ app })
|
new Tracing.Integrations.Express({ app }),
|
||||||
|
// @ts-ignore
|
||||||
|
new Sentry.Integrations.Prisma({ prisma })
|
||||||
],
|
],
|
||||||
|
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
// Set tracesSampleRate to 1.0 to capture 100%
|
||||||
// of transactions for performance monitoring.
|
// of transactions for performance monitoring.
|
||||||
// We recommend adjusting this value in production
|
// We recommend adjusting this value in production
|
||||||
tracesSampleRate: 1.0
|
tracesSampleRate: config.global.debug ? 1.0 : 0.5,
|
||||||
|
environment: config.global.debug ? 'development' : 'production'
|
||||||
});
|
});
|
||||||
|
|
||||||
// RequestHandler creates a separate execution context using domains, so that every
|
// RequestHandler creates a separate execution context using domains, so that every
|
||||||
|
Loading…
Reference in New Issue
Block a user