Skip to content

Commit 85b971c

Browse files
committed
fix stuff & exports
1 parent 2ab12b5 commit 85b971c

File tree

10 files changed

+87
-19
lines changed

10 files changed

+87
-19
lines changed

packages/astro/src/index.server.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ export {
6868
// eslint-disable-next-line deprecation/deprecation
6969
deepReadDirSync,
7070
Integrations,
71+
consoleIntegration,
72+
onUncaughtExceptionIntegration,
73+
onUnhandledRejectionIntegration,
74+
modulesIntegration,
75+
contextLinesIntegration,
76+
nodeContextIntegration,
77+
localVariablesIntegration,
78+
requestDataIntegration,
79+
functionToStringIntegration,
80+
inboundFiltersIntegration,
81+
linkedErrorsIntegration,
7182
Handlers,
7283
setMeasurement,
7384
getActiveSpan,

packages/bun/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ import * as BunIntegrations from './integrations';
105105
const INTEGRATIONS = {
106106
// eslint-disable-next-line deprecation/deprecation
107107
...CoreIntegrations,
108+
// eslint-disable-next-line deprecation/deprecation
108109
...NodeIntegrations,
109110
...BunIntegrations,
110111
};

packages/bun/src/sdk.ts

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
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';
417
import type { Integration, Options } from '@sentry/types';
518

619
import { BunClient } from './client';
@@ -10,25 +23,23 @@ import type { BunOptions } from './types';
1023

1124
/** @deprecated Use `getDefaultIntegrations(options)` instead. */
1225
export 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
];

packages/node-experimental/src/index.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { Integrations as CoreIntegrations } from '@sentry/core';
22

33
import * as NodeExperimentalIntegrations from './integrations';
44

5-
const INTEGRATIONS = {
5+
export const Integrations = {
66
// eslint-disable-next-line deprecation/deprecation
77
...CoreIntegrations,
88
...NodeExperimentalIntegrations,
99
};
1010

1111
export { init } from './sdk/init';
12-
export { INTEGRATIONS as Integrations };
1312
export { getAutoPerformanceIntegrations } from './integrations/getAutoPerformanceIntegrations';
1413
export * as Handlers from './sdk/handlers';
1514
export type { Span } from './types';
@@ -72,6 +71,17 @@ export {
7271
captureCheckIn,
7372
withMonitor,
7473
hapiErrorPlugin,
74+
consoleIntegration,
75+
onUncaughtExceptionIntegration,
76+
onUnhandledRejectionIntegration,
77+
modulesIntegration,
78+
contextLinesIntegration,
79+
nodeContextIntegration,
80+
localVariablesIntegration,
81+
requestDataIntegration,
82+
functionToStringIntegration,
83+
inboundFiltersIntegration,
84+
linkedErrorsIntegration,
7585
} from '@sentry/node';
7686

7787
export type {

packages/node-experimental/src/integrations/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const {
99
Context,
1010
RequestData,
1111
LocalVariables,
12+
// eslint-disable-next-line deprecation/deprecation
1213
} = NodeIntegrations;
1314

1415
export {

packages/node-experimental/src/sdk/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { endSession, getIntegrationsToSetup, hasTracingEnabled, startSession } from '@sentry/core';
22
import {
3-
Integrations,
43
defaultIntegrations as defaultNodeIntegrations,
54
defaultStackParser,
65
getDefaultIntegrations as getDefaultNodeIntegrations,
76
getSentryRelease,
87
makeNodeTransport,
8+
spotlightIntegration,
99
} from '@sentry/node';
1010
import type { Client, Integration, Options } from '@sentry/types';
1111
import {
@@ -94,7 +94,7 @@ export function init(options: NodeExperimentalOptions | undefined = {}): void {
9494
client.addIntegration(integration);
9595
}
9696
client.addIntegration(
97-
new Integrations.Spotlight({
97+
spotlightIntegration({
9898
sidecarUrl: typeof options.spotlight === 'string' ? options.spotlight : undefined,
9999
}),
100100
);

packages/node/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ import * as Handlers from './handlers';
120120
import * as NodeIntegrations from './integrations';
121121
import * as TracingIntegrations from './tracing/integrations';
122122

123-
/** @deprecated Import the integration function directly, e.g. `inboundFiltersIntegration()` instead of `new Integrations.InboundFilter(). */
123+
// TODO: Deprecate this once we migrated tracing integrations
124124
export const Integrations = {
125125
// eslint-disable-next-line deprecation/deprecation
126126
...CoreIntegrations,

packages/remix/src/index.server.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ export {
6666
// eslint-disable-next-line deprecation/deprecation
6767
deepReadDirSync,
6868
Integrations,
69+
consoleIntegration,
70+
onUncaughtExceptionIntegration,
71+
onUnhandledRejectionIntegration,
72+
modulesIntegration,
73+
contextLinesIntegration,
74+
nodeContextIntegration,
75+
localVariablesIntegration,
76+
requestDataIntegration,
77+
functionToStringIntegration,
78+
inboundFiltersIntegration,
79+
linkedErrorsIntegration,
6980
Handlers,
7081
cron,
7182
parameterize,

packages/serverless/src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export {
6868
// eslint-disable-next-line deprecation/deprecation
6969
deepReadDirSync,
7070
Handlers,
71+
// eslint-disable-next-line deprecation/deprecation
7172
Integrations,
7273
setMeasurement,
7374
getActiveSpan,
@@ -78,4 +79,15 @@ export {
7879
startSpanManual,
7980
continueTrace,
8081
parameterize,
82+
consoleIntegration,
83+
onUncaughtExceptionIntegration,
84+
onUnhandledRejectionIntegration,
85+
modulesIntegration,
86+
contextLinesIntegration,
87+
nodeContextIntegration,
88+
localVariablesIntegration,
89+
requestDataIntegration,
90+
functionToStringIntegration,
91+
inboundFiltersIntegration,
92+
linkedErrorsIntegration,
8193
} from '@sentry/node';

packages/sveltekit/src/server/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ export {
6565
// eslint-disable-next-line deprecation/deprecation
6666
deepReadDirSync,
6767
Integrations,
68+
consoleIntegration,
69+
onUncaughtExceptionIntegration,
70+
onUnhandledRejectionIntegration,
71+
modulesIntegration,
72+
contextLinesIntegration,
73+
nodeContextIntegration,
74+
localVariablesIntegration,
75+
requestDataIntegration,
76+
functionToStringIntegration,
77+
inboundFiltersIntegration,
78+
linkedErrorsIntegration,
6879
Handlers,
6980
setMeasurement,
7081
getActiveSpan,

0 commit comments

Comments
 (0)