You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO(v11): Remove this option since its no longer used.
48
49
/**
49
-
* @deprecated This option has no effect since OpenTelemetry always traces the handler.
50
-
* If you want to disable tracing, set `SENTRY_TRACES_SAMPLE_RATE` to `0.0`.
50
+
* @deprecated This option has no effect and will be removed in a future major version.
51
+
* If you want to disable tracing, set `SENTRY_TRACES_SAMPLE_RATE` to `0.0`, otherwise OpenTelemetry will automatically trace the handler.
51
52
*/
52
53
startTrace: boolean;
53
54
}
@@ -215,7 +216,7 @@ export function wrapHandler<TEvent, TResult>(
215
216
consoleSandbox(()=>{
216
217
// eslint-disable-next-line no-console
217
218
console.warn(
218
-
'The `startTrace` option is deprecated and has no effect since OpenTelemetry always traces the handler. If you want to disable tracing, set `SENTRY_TRACES_SAMPLE_RATE` to `0.0`.',
219
+
'The `startTrace` option is deprecated and will be removed in a future major version. If you want to disable tracing, set `SENTRY_TRACES_SAMPLE_RATE` to `0.0`.',
219
220
);
220
221
});
221
222
}
@@ -226,7 +227,7 @@ export function wrapHandler<TEvent, TResult>(
226
227
captureTimeoutWarning: true,
227
228
timeoutWarningLimit: 500,
228
229
captureAllSettledReasons: false,
229
-
startTrace: true,
230
+
startTrace: true,// TODO(v11): Remove this option. Set to true here to satisfy the type, but has no effect.
0 commit comments