Skip to content

Commit 05a0777

Browse files
committed
ref(node-experimental): Cleanup re-exports
So we can clearly see what is missing from node - which is cron & integrations.
1 parent 6cc1e51 commit 05a0777

File tree

1 file changed

+22
-28
lines changed

1 file changed

+22
-28
lines changed

packages/node-experimental/src/index.ts

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,43 @@ export { prismaIntegration } from './integrations/tracing/prisma';
1414
export { init, getDefaultIntegrations } from './sdk/init';
1515
export { getAutoPerformanceIntegrations } from './integrations/tracing';
1616
export * as Handlers from './sdk/handlers';
17-
export type { Span } from './types';
18-
19-
export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan } from '@sentry/opentelemetry';
2017
export { getClient, getSentryRelease, defaultStackParser } from './sdk/api';
2118
export { createGetModuleFromFilename } from './utils/module';
19+
export { makeNodeTransport } from './transports';
2220
// eslint-disable-next-line deprecation/deprecation
2321
export { getCurrentHub } from './sdk/hub';
2422

23+
export type { Span, NodeOptions } from './types';
24+
25+
export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan } from '@sentry/opentelemetry';
26+
27+
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
28+
29+
export {
30+
hapiErrorPlugin,
31+
consoleIntegration,
32+
onUncaughtExceptionIntegration,
33+
onUnhandledRejectionIntegration,
34+
modulesIntegration,
35+
contextLinesIntegration,
36+
nodeContextIntegration,
37+
localVariablesIntegration,
38+
cron,
39+
} from '@sentry/node';
40+
2541
export {
2642
addBreadcrumb,
2743
isInitialized,
28-
makeNodeTransport,
2944
getGlobalScope,
30-
addRequestDataToEvent,
31-
DEFAULT_USER_INCLUDES,
32-
extractRequestData,
33-
// eslint-disable-next-line deprecation/deprecation
34-
getModuleFromFilename,
3545
close,
3646
createTransport,
3747
flush,
3848
Hub,
39-
// eslint-disable-next-line deprecation/deprecation
40-
runWithAsyncContext,
4149
SDK_VERSION,
4250
getSpanStatusFromHttpCode,
4351
setHttpStatus,
4452
captureCheckIn,
4553
withMonitor,
46-
hapiErrorPlugin,
47-
consoleIntegration,
48-
onUncaughtExceptionIntegration,
49-
onUnhandledRejectionIntegration,
50-
modulesIntegration,
51-
contextLinesIntegration,
52-
nodeContextIntegration,
53-
localVariablesIntegration,
5454
requestDataIntegration,
5555
functionToStringIntegration,
5656
inboundFiltersIntegration,
@@ -70,23 +70,17 @@ export {
7070
Scope,
7171
setMeasurement,
7272
continueTrace,
73-
cron,
7473
parameterize,
75-
// eslint-disable-next-line deprecation/deprecation
76-
makeMain,
7774
getCurrentScope,
7875
getIsolationScope,
7976
withScope,
8077
withIsolationScope,
8178
captureException,
8279
captureEvent,
8380
captureMessage,
84-
} from '@sentry/node';
81+
} from '@sentry/core';
8582

8683
export type {
87-
SpanStatusType,
88-
TransactionNamingScheme,
89-
AddRequestDataToEventOptions,
9084
Breadcrumb,
9185
BreadcrumbHint,
9286
PolymorphicRequest,
@@ -100,6 +94,6 @@ export type {
10094
StackFrame,
10195
Stacktrace,
10296
Thread,
97+
Transaction,
10398
User,
104-
NodeOptions,
105-
} from '@sentry/node';
99+
} from '@sentry/types';

0 commit comments

Comments
 (0)