Skip to content

Commit b9084c5

Browse files
committed
re-add tracesSampleRate
1 parent 2785f25 commit b9084c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/platforms/javascript/common/profiling/node-profiling.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ Sentry.init({
8686
// Add our Profiling integration
8787
+ nodeProfilingIntegration(),
8888
],
89+
tracesSampleRate: 1.0,
8990
+ profileSessionSampleRate: 1.0,
9091
+ profileLifecycle: 'manual',
9192
});
9293

9394
Sentry.profiler.startProfiler();
9495
// Code executed between these two calls will be profiled
96+
// All spans (unless those discarded by sampling) will have profiling data attached to them.
9597
Sentry.profiler.stopProfiler();
9698
```
9799

0 commit comments

Comments
 (0)