Skip to content

Commit afc305f

Browse files
committed
profiler: deprecate profileSampler and profilesSampleRate
1 parent 8d3c390 commit afc305f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/node/src/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export interface BaseNodeOptions {
2626

2727
/**
2828
* Sets profiling sample rate when @sentry/profiling-node is installed
29+
*
30+
* @deprecated
2931
*/
3032
profilesSampleRate?: number;
3133

@@ -39,6 +41,8 @@ export interface BaseNodeOptions {
3941
*
4042
* @returns A sample rate between 0 and 1 (0 drops the profile, 1 guarantees it will be sent). Returning `true` is
4143
* equivalent to returning 1 and returning `false` is equivalent to returning 0.
44+
*
45+
* @deprecated
4246
*/
4347
profilesSampler?: (samplingContext: SamplingContext) => number | boolean;
4448

0 commit comments

Comments
 (0)