Skip to content

Commit 1b51a88

Browse files
committed
Update @sentry/bun to use OTEL node
1 parent 0caddec commit 1b51a88

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
getRootSpan,
@@ -61,53 +76,35 @@ export {
6176
withActiveSpan,
6277
getSpanDescendants,
6378
continueTrace,
64-
metricsDefault as metrics,
65-
functionToStringIntegration,
66-
inboundFiltersIntegration,
67-
linkedErrorsIntegration,
68-
requestDataIntegration,
69-
captureConsoleIntegration,
70-
debugIntegration,
71-
dedupeIntegration,
72-
extraErrorDataIntegration,
73-
rewriteFramesIntegration,
74-
sessionTimingIntegration,
75-
parameterize,
76-
startSession,
77-
captureSession,
78-
endSession,
79-
} from '@sentry/core';
80-
export {
81-
DEFAULT_USER_INCLUDES,
82-
autoDiscoverNodePerformanceMonitoringIntegrations,
8379
cron,
84-
createGetModuleFromFilename,
85-
defaultStackParser,
86-
extractRequestData,
87-
getSentryRelease,
88-
addRequestDataToEvent,
89-
anrIntegration,
90-
consoleIntegration,
91-
contextLinesIntegration,
92-
hapiIntegration,
93-
httpIntegration,
94-
localVariablesIntegration,
95-
modulesIntegration,
96-
nativeNodeFetchintegration,
97-
nodeContextIntegration,
98-
onUncaughtExceptionIntegration,
99-
onUnhandledRejectionIntegration,
100-
spotlightIntegration,
80+
parameterize,
10181
SEMANTIC_ATTRIBUTE_SENTRY_OP,
10282
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
10383
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
10484
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
105-
} from '@sentry/node-experimental';
85+
expressIntegration,
86+
expressErrorHandler,
87+
setupExpressErrorHandler,
88+
fastifyIntegration,
89+
graphqlIntegration,
90+
mongoIntegration,
91+
mongooseIntegration,
92+
mysqlIntegration,
93+
mysql2Integration,
94+
nestIntegration,
95+
postgresIntegration,
96+
prismaIntegration,
97+
hapiIntegration,
98+
setupHapiErrorHandler,
99+
spotlightIntegration,
100+
} from '@sentry/node';
101+
102+
export type { BunOptions } from './types';
106103

107104
export { BunClient } from './client';
108105
export {
109106
getDefaultIntegrations,
110107
init,
111108
} from './sdk';
112-
113109
export { bunServerIntegration } from './integrations/bunserver';
110+
export { makeFetchTransport } from './transports';

0 commit comments

Comments
 (0)