📈 (analytics) implement sentry error tracing system
This commit is contained in:
8
src/utils/monitoring/sentry/init.ts
Normal file
8
src/utils/monitoring/sentry/init.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { init } from "@sentry/node";
|
||||
|
||||
export const sentryInit = () =>
|
||||
init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
tracesSampleRate: 1.0,
|
||||
environment: process.env.APP_ENV,
|
||||
});
|
||||
Reference in New Issue
Block a user