Skip to content

Commit b4aad49

Browse files
authored
feat(bun): Export skipOpenTelemetrySetup option (#17349)
As raised in #16969, the Bun SDK doesn't currently export `skipOpenTelemetrySetup` in the SDK init options type, altghough the option can be correctly passed to the underlying `NodeClient`. This patch exports the option now.
1 parent f25a327 commit b4aad49

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/bun/src/types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ export interface BaseBunOptions {
2323
/** Sets an optional server name (device name) */
2424
serverName?: string;
2525

26+
/**
27+
* If this is set to true, the SDK will not set up OpenTelemetry automatically.
28+
* In this case, you _have_ to ensure to set it up correctly yourself, including:
29+
* * The `SentrySpanProcessor`
30+
* * The `SentryPropagator`
31+
* * The `SentryContextManager`
32+
* * The `SentrySampler`
33+
*
34+
* If you are registering your own OpenTelemetry Loader Hooks (or `import-in-the-middle` hooks), it is also recommended to set the `registerEsmLoaderHooks` option to false.
35+
*/
36+
skipOpenTelemetrySetup?: boolean;
37+
2638
/** Callback that is executed when a fatal global error occurs. */
2739
onFatalError?(this: void, error: Error): void;
2840
}

0 commit comments

Comments
 (0)