Skip to content

Commit d77eeb5

Browse files
committed
fix: nuxt exports
1 parent 5b319e6 commit d77eeb5

File tree

1 file changed

+137
-1
lines changed

1 file changed

+137
-1
lines changed

packages/nuxt/src/server/index.ts

Lines changed: 137 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,139 @@
1-
export * from '@sentry/node';
1+
// Node SDK exports
2+
// Unfortunately, we cannot `export * from '@sentry/node'` because in prod builds,
3+
// Vite puts these exports into a `default` property (Sentry.default) rather than
4+
// on the top - level namespace.
5+
// Hence, we export everything from the Node SDK explicitly:
6+
export {
7+
addBreadcrumb,
8+
addEventProcessor,
9+
addIntegration,
10+
amqplibIntegration,
11+
// eslint-disable-next-line deprecation/deprecation
12+
anrIntegration,
13+
// eslint-disable-next-line deprecation/deprecation
14+
disableAnrDetectionForCallback,
15+
captureCheckIn,
16+
captureConsoleIntegration,
17+
captureEvent,
18+
captureException,
19+
captureFeedback,
20+
captureMessage,
21+
captureSession,
22+
close,
23+
connectIntegration,
24+
consoleIntegration,
25+
contextLinesIntegration,
26+
continueTrace,
27+
createGetModuleFromFilename,
28+
createTransport,
29+
cron,
30+
dedupeIntegration,
31+
defaultStackParser,
32+
endSession,
33+
expressErrorHandler,
34+
expressIntegration,
35+
extraErrorDataIntegration,
36+
fastifyIntegration,
37+
flush,
38+
functionToStringIntegration,
39+
genericPoolIntegration,
40+
generateInstrumentOnce,
41+
getActiveSpan,
42+
getAutoPerformanceIntegrations,
43+
getClient,
44+
getCurrentScope,
45+
getDefaultIntegrations,
46+
getGlobalScope,
47+
getIsolationScope,
48+
getRootSpan,
49+
getSentryRelease,
50+
getSpanDescendants,
51+
getSpanStatusFromHttpCode,
52+
getTraceData,
53+
getTraceMetaTags,
54+
graphqlIntegration,
55+
hapiIntegration,
56+
// eslint-disable-next-line deprecation/deprecation
57+
inboundFiltersIntegration,
58+
eventFiltersIntegration,
59+
initOpenTelemetry,
60+
isInitialized,
61+
isEnabled,
62+
knexIntegration,
63+
kafkaIntegration,
64+
koaIntegration,
65+
lastEventId,
66+
linkedErrorsIntegration,
67+
localVariablesIntegration,
68+
makeNodeTransport,
69+
modulesIntegration,
70+
mongoIntegration,
71+
mongooseIntegration,
72+
mysql2Integration,
73+
mysqlIntegration,
74+
nativeNodeFetchIntegration,
75+
NodeClient,
76+
nodeContextIntegration,
77+
onUncaughtExceptionIntegration,
78+
onUnhandledRejectionIntegration,
79+
parameterize,
80+
postgresIntegration,
81+
postgresJsIntegration,
82+
prismaIntegration,
83+
redisIntegration,
84+
requestDataIntegration,
85+
rewriteFramesIntegration,
86+
Scope,
87+
SDK_VERSION,
88+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
89+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
90+
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
91+
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
92+
setContext,
93+
setCurrentClient,
94+
setExtra,
95+
setExtras,
96+
setHttpStatus,
97+
setMeasurement,
98+
setTag,
99+
setTags,
100+
setupConnectErrorHandler,
101+
setupExpressErrorHandler,
102+
setupHapiErrorHandler,
103+
setupKoaErrorHandler,
104+
setUser,
105+
spanToBaggageHeader,
106+
spanToJSON,
107+
spanToTraceHeader,
108+
spotlightIntegration,
109+
startInactiveSpan,
110+
startNewTrace,
111+
suppressTracing,
112+
startSession,
113+
startSpan,
114+
startSpanManual,
115+
systemErrorIntegration,
116+
tediousIntegration,
117+
trpcMiddleware,
118+
updateSpanName,
119+
withActiveSpan,
120+
withIsolationScope,
121+
withMonitor,
122+
withScope,
123+
supabaseIntegration,
124+
instrumentSupabaseClient,
125+
zodErrorsIntegration,
126+
logger,
127+
consoleLoggingIntegration,
128+
createConsolaReporter,
129+
createSentryWinstonTransport,
130+
vercelAIIntegration,
131+
metrics,
132+
} from '@sentry/node';
133+
134+
// We can still leave this for the carrier init and type exports
135+
// FIXME: ROLLDOWN breaks here unless we export types and not the module
136+
// https://github.com/rolldown/rolldown/issues/6992
137+
export type * from '@sentry/node';
2138

3139
export { init } from './sdk';

0 commit comments

Comments
 (0)