Skip to content

Commit 1d232d2

Browse files
authored
Rearrange Logs to be above Profiling according ESLint
1 parent 68c8459 commit 1d232d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry-init.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ const Sentry = require('@sentry/node');
55
Sentry.init({
66
dsn: process.env.SENTRY_DSN,
77
integrations: [
8+
// Send console logs to Sentry
9+
Sentry.consoleLoggingIntegration({ levels: ["log", "warn", "error"] }),
810
// Profiling
911
nodeProfilingIntegration(),
10-
// Send console logs to Sentry
11-
Sentry.consoleLoggingIntegration({ levels: ["log", "warn", "error"] }),
1212
],
1313
// Logging
1414
enableLogs: process.env.SENTRY_LOGGING === 'true',
1515

1616
// Profiling
1717
profileLifecycle: 'trace',
1818
profileSessionSampleRate: parseFloat(process.env.SENTRY_PROFILING_RATE?? 1.0),
19-
19+
2020
// Setting this option to true will send default PII data to Sentry.
2121
// For example, automatic IP address collection on events
2222
sendDefaultPii: true,

0 commit comments

Comments
 (0)