MCPcopy
hub / github.com/getsentry/sentry / LoaderConfig

Interface LoaderConfig

src/sentry/templates/sentry/js-sdk-loader.ts:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40 // Loader config injected from the backend
41 interface LoaderConfig {
42 dsn: string;
43 tracesSampleRate?: number;
44 replaysSessionSampleRate?: number;
45 replaysOnErrorSampleRate?: number;
46 debug?: boolean;
47 // Although this is not a top-level SDK option we pass this flag so we can
48 // auto-add the integration in the loader template
49 autoInjectFeedback?: boolean;
50 integrations?:
51 | {name: string}[]
52 | ((integrations: {name: string}[]) => {name: string}[]);
53 [key: string]: unknown;
54 }
55
56 function queueIsError(item: QueueItem): item is ErrorQueueItem {
57 return 'e' in item;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected