MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / getDefaultIntegrations

Function getDefaultIntegrations

packages/sveltekit/src/client/sdk.ts:41–49  ·  view source on GitHub ↗
(options: BrowserOptions)

Source from the content-addressed store, hash-verified

39}
40
41function getDefaultIntegrations(options: BrowserOptions): Integration[] | undefined {
42 // This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false",
43 // in which case everything inside will get tree-shaken away
44 if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) {
45 return [...getDefaultSvelteIntegrations(options), svelteKitBrowserTracingIntegration()];
46 }
47
48 return getDefaultSvelteIntegrations(options);
49}
50
51/**
52 * During server-side page load, we injected a <script> that wraps `window.fetch` so that

Callers 1

initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected