Skip to content

Commit ac3453d

Browse files
authored
fix(node): Move profilesSampleRate into BaseNodeOptions (#6409)
1 parent 8bfa111 commit ac3453d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/node/src/types.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { ClientOptions, Options, TracePropagationTargets } from '@sentry/types';
33
import { NodeTransportOptions } from './transports';
44

55
export interface BaseNodeOptions {
6+
/**
7+
* Sets profiling sample rate when @sentry/profiling-node is installed
8+
*/
9+
profilesSampleRate?: number;
10+
611
/** Sets an optional server name (device name) */
712
serverName?: string;
813

@@ -56,9 +61,4 @@ export interface NodeOptions extends Options<NodeTransportOptions>, BaseNodeOpti
5661
* Configuration options for the Sentry Node SDK Client class
5762
* @see NodeClient for more information.
5863
*/
59-
export interface NodeClientOptions extends ClientOptions<NodeTransportOptions>, BaseNodeOptions {
60-
/**
61-
* Sets profiling sample rate when @sentry/profiling-node is installed
62-
*/
63-
profilesSampleRate?: number;
64-
}
64+
export interface NodeClientOptions extends ClientOptions<NodeTransportOptions>, BaseNodeOptions {}

0 commit comments

Comments
 (0)