Skip to content

Commit 2785f25

Browse files
committed
fix(node-profiling): Remove tracesSampleRate from manual lifecycle snippet
1 parent 32096cb commit 2785f25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ Sentry.init({
8686
// Add our Profiling integration
8787
+ nodeProfilingIntegration(),
8888
],
89-
tracesSampleRate: 1.0,
9089
+ profileSessionSampleRate: 1.0,
9190
+ profileLifecycle: 'manual',
9291
});
9392

94-
// All spans (unless those discarded by sampling) will have profiling data attached to them.
9593
Sentry.profiler.startProfiler();
9694
// Code executed between these two calls will be profiled
9795
Sentry.profiler.stopProfiler();
@@ -115,6 +113,7 @@ Sentry.init({
115113
tracesSampleRate: 1.0,
116114
+ profileSessionSampleRate: 0.0
117115
});
116+
```
118117

119118

120119
## How Does It Work?

0 commit comments

Comments
 (0)