11import type { Span as WriteableSpan } from '@opentelemetry/api' ;
2- import type { Instrumentation } from '@opentelemetry/instrumentation' ;
3- import type { ReadableSpan , SpanProcessor } from '@opentelemetry/sdk-trace-base' ;
2+ import type { ReadableSpan } from '@opentelemetry/sdk-trace-base' ;
43import type { BaseWinterTCOptions , ClientOptions , Options , SamplingContext , Scope , Span } from '@sentry/core' ;
54import type { NodeTransportOptions } from '@sentry/node-core' ;
65
@@ -50,46 +49,13 @@ export interface BaseNodeOptions extends BaseWinterTCOptions {
5049 */
5150 profileLifecycle ?: 'manual' | 'trace' ;
5251
53- /**
54- * If set to `false`, the SDK will not automatically detect the `serverName`.
55- *
56- * This is useful if you are using the SDK in a CLI app or Electron where the
57- * hostname might be considered PII.
58- *
59- * @default true
60- */
61- includeServerName ?: boolean ;
62-
6352 /**
6453 * Include local variables with stack traces.
6554 *
6655 * Requires the `LocalVariables` integration.
6756 */
6857 includeLocalVariables ?: boolean ;
6958
70- /**
71- * Provide an array of OpenTelemetry Instrumentations that should be registered.
72- *
73- * Use this option if you want to register OpenTelemetry instrumentation that the Sentry SDK does not yet have support for.
74- */
75- openTelemetryInstrumentations ?: Instrumentation [ ] ;
76-
77- /**
78- * Provide an array of additional OpenTelemetry SpanProcessors that should be registered.
79- */
80- openTelemetrySpanProcessors ?: SpanProcessor [ ] ;
81-
82- /**
83- * The max. duration in seconds that the SDK will wait for parent spans to be finished before discarding a span.
84- * The SDK will automatically clean up spans that have no finished parent after this duration.
85- * This is necessary to prevent memory leaks in case of parent spans that are never finished or otherwise dropped/missing.
86- * However, if you have very long-running spans in your application, a shorter duration might cause spans to be discarded too early.
87- * In this case, you can increase this duration to a value that fits your expected data.
88- *
89- * Defaults to 300 seconds (5 minutes).
90- */
91- maxSpanWaitDuration ?: number ;
92-
9359 /**
9460 * Whether to register ESM loader hooks to automatically instrument libraries.
9561 * This is necessary to auto instrument libraries that are loaded via ESM imports, but it can cause issues
@@ -99,25 +65,6 @@ export interface BaseNodeOptions extends BaseWinterTCOptions {
9965 * Defaults to `true`.
10066 */
10167 registerEsmLoaderHooks ?: boolean ;
102-
103- /**
104- * Configures in which interval client reports will be flushed. Defaults to `60_000` (milliseconds).
105- */
106- clientReportFlushInterval ?: number ;
107-
108- /**
109- * By default, the SDK will try to identify problems with your instrumentation setup and warn you about it.
110- * If you want to disable these warnings, set this to `true`.
111- */
112- disableInstrumentationWarnings ?: boolean ;
113-
114- /**
115- * Controls how many milliseconds to wait before shutting down. The default is 2 seconds. Setting this too low can cause
116- * problems for sending events from command line applications. Setting it too
117- * high can cause the application to block for users with network connectivity
118- * problems.
119- */
120- shutdownTimeout ?: number ;
12168}
12269
12370/**
0 commit comments