MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getDefaultIntegrations

Function getDefaultIntegrations

packages/bun/src/sdk.ts:30–56  ·  view source on GitHub ↗
(_options: Options)

Source from the content-addressed store, hash-verified

28
29/** Get the default integrations for the Bun SDK. */
30export function getDefaultIntegrations(_options: Options): Integration[] {
31 // We return a copy of the defaultIntegrations here to avoid mutating this
32 return [
33 // Common
34 // TODO(v11): Replace with eventFiltersIntegration once we remove the deprecated `inboundFiltersIntegration`
35 // eslint-disable-next-line typescript/no-deprecated
36 inboundFiltersIntegration(),
37 functionToStringIntegration(),
38 linkedErrorsIntegration(),
39 requestDataIntegration(),
40 // Native Wrappers
41 consoleIntegration(),
42 httpIntegration(),
43 nativeNodeFetchIntegration(),
44 // Global Handlers
45 onUncaughtExceptionIntegration(),
46 onUnhandledRejectionIntegration(),
47 // Event Info
48 contextLinesIntegration(),
49 nodeContextIntegration(),
50 modulesIntegration(),
51 processSessionIntegration(),
52 // Bun Specific
53 bunServerIntegration(),
54 ...(hasSpansEnabled(_options) ? getAutoPerformanceIntegrations() : []),
55 ];
56}
57
58/**
59 * The Sentry Bun SDK Client.

Callers 2

initFunction · 0.90
initFunction · 0.70

Calls 2

hasSpansEnabledFunction · 0.90

Tested by

no test coverage detected