Skip to content

Commit 8ba889f

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 54b94da commit 8ba889f

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
@@ -15,43 +15,43 @@ export { prismaIntegration } from './integrations/tracing/prisma';
1515

1616
export { init, getDefaultIntegrations } from './sdk/init';
1717
export { getAutoPerformanceIntegrations } from './integrations/tracing';
18-
export type { Span } from './types';
19-
20-
export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan } from '@sentry/opentelemetry';
2118
export { getClient, getSentryRelease, defaultStackParser } from './sdk/api';
2219
export { createGetModuleFromFilename } from './utils/module';
20+
export { makeNodeTransport } from './transports';
2321
// eslint-disable-next-line deprecation/deprecation
2422
export { getCurrentHub } from './sdk/hub';
2523

24+
export type { Span, NodeOptions } from './types';
25+
26+
export { startSpan, startSpanManual, startInactiveSpan, getActiveSpan, withActiveSpan } from '@sentry/opentelemetry';
27+
28+
export { addRequestDataToEvent, DEFAULT_USER_INCLUDES, extractRequestData } from '@sentry/utils';
29+
30+
export {
31+
hapiErrorPlugin,
32+
consoleIntegration,
33+
onUncaughtExceptionIntegration,
34+
onUnhandledRejectionIntegration,
35+
modulesIntegration,
36+
contextLinesIntegration,
37+
nodeContextIntegration,
38+
localVariablesIntegration,
39+
cron,
40+
} from '@sentry/node';
41+
2642
export {
2743
addBreadcrumb,
2844
isInitialized,
29-
makeNodeTransport,
3045
getGlobalScope,
31-
addRequestDataToEvent,
32-
DEFAULT_USER_INCLUDES,
33-
extractRequestData,
34-
// eslint-disable-next-line deprecation/deprecation
35-
getModuleFromFilename,
3646
close,
3747
createTransport,
3848
flush,
3949
Hub,
40-
// eslint-disable-next-line deprecation/deprecation
41-
runWithAsyncContext,
4250
SDK_VERSION,
4351
getSpanStatusFromHttpCode,
4452
setHttpStatus,
4553
captureCheckIn,
4654
withMonitor,
47-
hapiErrorPlugin,
48-
consoleIntegration,
49-
onUncaughtExceptionIntegration,
50-
onUnhandledRejectionIntegration,
51-
modulesIntegration,
52-
contextLinesIntegration,
53-
nodeContextIntegration,
54-
localVariablesIntegration,
5555
requestDataIntegration,
5656
functionToStringIntegration,
5757
inboundFiltersIntegration,
@@ -71,23 +71,17 @@ export {
7171
Scope,
7272
setMeasurement,
7373
continueTrace,
74-
cron,
7574
parameterize,
76-
// eslint-disable-next-line deprecation/deprecation
77-
makeMain,
7875
getCurrentScope,
7976
getIsolationScope,
8077
withScope,
8178
withIsolationScope,
8279
captureException,
8380
captureEvent,
8481
captureMessage,
85-
} from '@sentry/node';
82+
} from '@sentry/core';
8683

8784
export type {
88-
SpanStatusType,
89-
TransactionNamingScheme,
90-
AddRequestDataToEventOptions,
9185
Breadcrumb,
9286
BreadcrumbHint,
9387
PolymorphicRequest,
@@ -101,6 +95,6 @@ export type {
10195
StackFrame,
10296
Stacktrace,
10397
Thread,
98+
Transaction,
10499
User,
105-
NodeOptions,
106-
} from '@sentry/node';
100+
} from '@sentry/types';

0 commit comments

Comments
 (0)