Skip to content

Commit 832a547

Browse files
committed
Add support for propagateTraceparent
1 parent 3bd3f0d commit 832a547

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/core/src/js/options.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,20 @@ export interface BaseReactNativeOptions {
291291
* @deprecated This option will be removed in the next major version. Use `beforeSend` instead.
292292
*/
293293
useThreadsForMessageStack?: boolean;
294+
295+
/**
296+
* If set to `true`, the SDK propagates the W3C `traceparent` header to any outgoing requests,
297+
* in addition to the `sentry-trace` and `baggage` headers. Use the {@link CoreOptions.tracePropagationTargets}
298+
* option to control to which outgoing requests the header will be attached.
299+
*
300+
* **Important:** If you set this option to `true`, make sure that you configured your servers'
301+
* CORS settings to allow the `traceparent` header. Otherwise, requests might get blocked.
302+
*
303+
* @see https://www.w3.org/TR/trace-context/
304+
*
305+
* @default false
306+
*/
307+
propagateTraceparent?: boolean;
294308
}
295309

296310
export type SentryReplayQuality = 'low' | 'medium' | 'high';

0 commit comments

Comments
 (0)