Skip to content

Commit c3b8322

Browse files
authored
Attempt to fix Profiling
1 parent cc36d6a commit c3b8322

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/nestjs-libraries/src/sentry/initialize.sentry.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export const initializeSentry = (appName: string, allowLogs = false) => {
2929
],
3030
tracesSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.3,
3131
enableLogs: true,
32+
33+
// Profiling
34+
profileSessionSampleRate: process.env.NODE_ENV === 'development' ? 1.0 : 0.3,
35+
profileLifecycle: 'trace',
3236
});
3337
} catch (err) {
3438
console.log(err);

0 commit comments

Comments
 (0)