Skip to content

Commit 122fdb3

Browse files
committed
Update @sentry/bun to use OTEL node
1 parent a5ea42e commit 122fdb3

File tree

3 files changed

+45
-58
lines changed

3 files changed

+45
-58
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,11 @@ const DEPENDENTS: Dependent[] = [
4646
},
4747
{
4848
package: '@sentry/bun',
49-
compareWith: nodeExperimentalExports,
49+
compareWith: nodeExports,
5050
exports: Object.keys(SentryBun),
5151
ignoreExports: [
5252
// not supported in bun:
53-
'Handlers',
5453
'NodeClient',
55-
'hapiErrorPlugin',
56-
'makeNodeTransport',
57-
// TODO: remove these when we switch exports from nodeExperimentalExports to nodeExports
58-
'Integrations',
59-
'addGlobalEventProcessor',
60-
'getActiveTransaction',
61-
'getCurrentHub',
62-
'makeMain',
63-
'startTransaction',
6454
],
6555
},
6656
{

packages/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"dependencies": {
4545
"@sentry/core": "8.0.0-alpha.2",
46-
"@sentry/node-experimental": "8.0.0-alpha.2",
46+
"@sentry/node": "8.0.0-alpha.2",
4747
"@sentry/types": "8.0.0-alpha.2",
4848
"@sentry/utils": "8.0.0-alpha.2"
4949
},

packages/bun/src/index.ts

Lines changed: 43 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ export type {
1818
} from '@sentry/types';
1919
export type { AddRequestDataToEventOptions } from '@sentry/utils';
2020

21-
export type { TransactionNamingScheme } from '@sentry/node-experimental';
22-
export type { BunOptions } from './types';
23-
2421
export {
2522
addEventProcessor,
2623
addBreadcrumb,
27-
addIntegration,
2824
captureException,
2925
captureEvent,
3026
captureMessage,
31-
close,
27+
captureCheckIn,
28+
withMonitor,
3229
createTransport,
33-
flush,
30+
// eslint-disable-next-line deprecation/deprecation
31+
getCurrentHub,
3432
getClient,
3533
isInitialized,
3634
getCurrentScope,
@@ -50,8 +48,25 @@ export {
5048
setHttpStatus,
5149
withScope,
5250
withIsolationScope,
53-
captureCheckIn,
54-
withMonitor,
51+
makeNodeTransport,
52+
defaultStackParser,
53+
flush,
54+
close,
55+
getSentryRelease,
56+
addRequestDataToEvent,
57+
DEFAULT_USER_INCLUDES,
58+
extractRequestData,
59+
consoleIntegration,
60+
onUncaughtExceptionIntegration,
61+
onUnhandledRejectionIntegration,
62+
modulesIntegration,
63+
contextLinesIntegration,
64+
nodeContextIntegration,
65+
localVariablesIntegration,
66+
requestDataIntegration,
67+
functionToStringIntegration,
68+
inboundFiltersIntegration,
69+
linkedErrorsIntegration,
5570
setMeasurement,
5671
getActiveSpan,
5772
startSpan,
@@ -60,53 +75,35 @@ export {
6075
withActiveSpan,
6176
getSpanDescendants,
6277
continueTrace,
63-
metricsDefault as metrics,
64-
functionToStringIntegration,
65-
inboundFiltersIntegration,
66-
linkedErrorsIntegration,
67-
requestDataIntegration,
68-
captureConsoleIntegration,
69-
debugIntegration,
70-
dedupeIntegration,
71-
extraErrorDataIntegration,
72-
rewriteFramesIntegration,
73-
sessionTimingIntegration,
74-
parameterize,
75-
startSession,
76-
captureSession,
77-
endSession,
78-
} from '@sentry/core';
79-
export {
80-
DEFAULT_USER_INCLUDES,
81-
autoDiscoverNodePerformanceMonitoringIntegrations,
8278
cron,
83-
createGetModuleFromFilename,
84-
defaultStackParser,
85-
extractRequestData,
86-
getSentryRelease,
87-
addRequestDataToEvent,
88-
anrIntegration,
89-
consoleIntegration,
90-
contextLinesIntegration,
91-
hapiIntegration,
92-
httpIntegration,
93-
localVariablesIntegration,
94-
modulesIntegration,
95-
nativeNodeFetchintegration,
96-
nodeContextIntegration,
97-
onUncaughtExceptionIntegration,
98-
onUnhandledRejectionIntegration,
99-
spotlightIntegration,
79+
parameterize,
10080
SEMANTIC_ATTRIBUTE_SENTRY_OP,
10181
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
10282
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
10383
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
104-
} from '@sentry/node-experimental';
84+
expressIntegration,
85+
expressErrorHandler,
86+
setupExpressErrorHandler,
87+
fastifyIntegration,
88+
graphqlIntegration,
89+
mongoIntegration,
90+
mongooseIntegration,
91+
mysqlIntegration,
92+
mysql2Integration,
93+
nestIntegration,
94+
postgresIntegration,
95+
prismaIntegration,
96+
hapiIntegration,
97+
setupHapiErrorHandler,
98+
spotlightIntegration,
99+
} from '@sentry/node';
100+
101+
export type { BunOptions } from './types';
105102

106103
export { BunClient } from './client';
107104
export {
108105
getDefaultIntegrations,
109106
init,
110107
} from './sdk';
111-
112108
export { bunServerIntegration } from './integrations/bunserver';
109+
export { makeFetchTransport } from './transports';

0 commit comments

Comments
 (0)