Skip to content

Commit 3ef776a

Browse files
authored
bump profiling and run it as trace lifecycle (#180)
1 parent 757203d commit 3ef776a

3 files changed

Lines changed: 222 additions & 212 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"README"
2121
],
2222
"dependencies": {
23-
"@sentry/node": "^9.0.0-alpha.0",
24-
"@sentry/profiling-node": "^9.0.0-alpha.0",
23+
"@sentry/node": "^9.8.0",
24+
"@sentry/profiling-node": "^9.8.0",
2525
"canvas": "^2.11.2",
2626
"dotenv": "^8.2.0",
2727
"echarts": "5.4.0",

src/instrument.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Sentry.init({
55
dsn: process.env.SENTRY_DSN,
66
integrations: [nodeProfilingIntegration()],
77
tracesSampleRate: 1,
8+
profileLifecycle: 'trace',
9+
profileSessionSampleRate: 1,
810
});
9-
10-
Sentry.profiler.startProfiler();

0 commit comments

Comments
 (0)