We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbba00 commit 7bc561fCopy full SHA for 7bc561f
packages/profiling-node/src/integration.ts
@@ -448,13 +448,8 @@ export const _nodeProfilingIntegration = ((): ProfilingIntegration<NodeClient> =
448
const profilingAPIVersion = getProfilingMode(options);
449
450
if (profilingAPIVersion === 'legacy') {
451
- const mode =
452
- (options.profilesSampleRate === undefined ||
453
- options.profilesSampleRate === null ||
454
- options.profilesSampleRate === 0) &&
455
- !options.profilesSampler
456
- ? 'continuous'
457
- : 'span';
+ const mode = !('profileSessionSampleRate' in options) && !options.profilesSampler ? 'continuous' : 'span';
+
458
switch (mode) {
459
case 'continuous': {
460
DEBUG_BUILD && logger.log('[Profiling] Continuous profiler mode enabled.');
0 commit comments