11/* eslint-disable max-lines */
2- import { FunctionToString , InboundFilters , LinkedErrors } from '@sentry/core' ;
3- import { Integrations as NodeIntegrations , init as initNode } from '@sentry/node' ;
2+ import {
3+ functionToStringIntegration ,
4+ inboundFiltersIntegration ,
5+ linkedErrorsIntegration ,
6+ requestDataIntegration ,
7+ } from '@sentry/core' ;
8+ import {
9+ consoleIntegration ,
10+ contextLinesIntegration ,
11+ httpIntegration ,
12+ init as initNode ,
13+ modulesIntegration ,
14+ nodeContextIntegration ,
15+ undiciIntegration ,
16+ } from '@sentry/node' ;
417import type { Integration , Options } from '@sentry/types' ;
518
619import { BunClient } from './client' ;
@@ -10,25 +23,23 @@ import type { BunOptions } from './types';
1023
1124/** @deprecated Use `getDefaultIntegrations(options)` instead. */
1225export const defaultIntegrations = [
13- /* eslint-disable deprecation/deprecation */
1426 // Common
15- new InboundFilters ( ) ,
16- new FunctionToString ( ) ,
17- new LinkedErrors ( ) ,
18- /* eslint-enable deprecation/deprecation */
27+ inboundFiltersIntegration ( ) ,
28+ functionToStringIntegration ( ) ,
29+ linkedErrorsIntegration ( ) ,
30+ requestDataIntegration ( ) ,
1931 // Native Wrappers
20- new NodeIntegrations . Console ( ) ,
21- new NodeIntegrations . Http ( ) ,
22- new NodeIntegrations . Undici ( ) ,
32+ consoleIntegration ( ) ,
33+ httpIntegration ( ) ,
34+ undiciIntegration ( ) ,
2335 // Global Handlers # TODO (waiting for https://github.com/oven-sh/bun/issues/5091)
2436 // new NodeIntegrations.OnUncaughtException(),
2537 // new NodeIntegrations.OnUnhandledRejection(),
2638 // Event Info
27- new NodeIntegrations . ContextLines ( ) ,
39+ contextLinesIntegration ( ) ,
2840 // new NodeIntegrations.LocalVariables(), # does't work with Bun
29- new NodeIntegrations . Context ( ) ,
30- new NodeIntegrations . Modules ( ) ,
31- new NodeIntegrations . RequestData ( ) ,
41+ nodeContextIntegration ( ) ,
42+ modulesIntegration ( ) ,
3243 // Bun Specific
3344 new BunServer ( ) ,
3445] ;
0 commit comments