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
feat(core,node-core): Consolidate bun and node types with ServerRuntimeOptions (#18734)
closes#18437
closes
[JS-1272](https://linear.app/getsentry/issue/JS-1272/extend-bunoptions-with-nodeoptions)
This adds a new type `ServerRuntimeOptions` inside `@sentry/core`, a
type which can be used for all SDKs without OpenTelemetry suppport. In
case OpenTelemetry support is needed `OpenTelemetryServerRuntimeOptions`
are exported from `@sentry/node-core`, which extends
`ServerRuntimeOptions` with the options which are needed to support
OTel.
For now we don't have a nice testing strategy for Bun yet, and I didn't
want to copy paste all Node integration/e2e tests just for this, I'm
still up for suggestions.
* If you use Spotlight by Sentry during development, use
27
-
* this option to forward captured Sentry events to Spotlight.
28
-
*
29
-
* Either set it to true, or provide a specific Spotlight Sidecar URL.
30
-
*
31
-
* More details: https://spotlightjs.com/
32
-
*
33
-
* IMPORTANT: Only set this option to `true` while developing, not in production!
34
-
*/
35
-
spotlight?: boolean|string;
36
-
37
-
/**
38
-
* If this is set to true, the SDK will not set up OpenTelemetry automatically.
39
-
* In this case, you _have_ to ensure to set it up correctly yourself, including:
40
-
* * The `SentrySpanProcessor`
41
-
* * The `SentryPropagator`
42
-
* * The `SentryContextManager`
43
-
* * The `SentrySampler`
44
-
*
45
-
* 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.
46
-
*/
47
-
skipOpenTelemetrySetup?: boolean;
48
-
49
-
/** Callback that is executed when a fatal global error occurs. */
50
-
onFatalError?(this: void,error: Error): void;
51
-
}
4
+
/**
5
+
* Base options for the Sentry Bun SDK.
6
+
* Extends the common WinterTC options with OpenTelemetry support shared with Node.js and other server-side SDKs.
0 commit comments