mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 06:02:36 +10:00
fix sentry
This commit is contained in:
@ -4,13 +4,9 @@ import { envPath } from '../helpers';
|
|||||||
import * as dotenv from 'dotenv';
|
import * as dotenv from 'dotenv';
|
||||||
dotenv.config({ path: envPath });
|
dotenv.config({ path: envPath });
|
||||||
|
|
||||||
if (process.env.SENTRY_DSN) {
|
Sentry.init({
|
||||||
Sentry.init({
|
|
||||||
dsn: process.env.SENTRY_DSN,
|
dsn: process.env.SENTRY_DSN,
|
||||||
integrations: [
|
integrations: [nodeProfilingIntegration()],
|
||||||
nodeProfilingIntegration(),
|
|
||||||
],
|
|
||||||
tracesSampleRate: 1.0,
|
tracesSampleRate: 1.0,
|
||||||
profilesSampleRate: 1.0,
|
profilesSampleRate: 1.0,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user