Skip to content

Commit f759cbb

Browse files
committed
feat(node-experimental): Add missing re-exports
1 parent 551aa86 commit f759cbb

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

packages/node-experimental/src/index.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Integrations = {
2121
...NodeExperimentalIntegrations,
2222
};
2323

24-
export { init } from './sdk/init';
24+
export { init, getDefaultIntegrations } from './sdk/init';
2525
export { getAutoPerformanceIntegrations } from './integrations/getAutoPerformanceIntegrations';
2626
export * as Handlers from './sdk/handlers';
2727
export type { Span } from './types';
@@ -40,7 +40,7 @@ export {
4040
setIsolationScope,
4141
setCurrentScope,
4242
} from './sdk/api';
43-
export { getCurrentHub, makeMain } from './sdk/hub';
43+
export { getCurrentHub } from './sdk/hub';
4444

4545
export {
4646
addBreadcrumb,
@@ -88,6 +88,14 @@ export {
8888
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
8989
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
9090
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
91+
setCurrentClient,
92+
Scope,
93+
setMeasurement,
94+
continueTrace,
95+
cron,
96+
parameterize,
97+
// eslint-disable-next-line deprecation/deprecation
98+
makeMain,
9199
} from '@sentry/node';
92100

93101
export type {
@@ -108,4 +116,5 @@ export type {
108116
Stacktrace,
109117
Thread,
110118
User,
119+
NodeOptions,
111120
} from '@sentry/node';

packages/node-experimental/src/sdk/hub.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function setupGlobalHub(): void {
3434

3535
/**
3636
* This is for legacy reasons, and returns a proxy object instead of a hub to be used.
37+
* @deprecated Use the methods directly.
3738
*/
3839
export function getCurrentHub(): Hub {
3940
return {
@@ -124,17 +125,6 @@ export function getCurrentHub(): Hub {
124125
};
125126
}
126127

127-
/**
128-
* Replaces the current main hub with the passed one on the global object
129-
*
130-
* @returns The old replaced hub
131-
*/
132-
export function makeMain(hub: Hub): Hub {
133-
// eslint-disable-next-line no-console
134-
console.warn('makeMain is a noop in @sentry/node-experimental. Use `setCurrentClient` instead.');
135-
return hub;
136-
}
137-
138128
/**
139129
* Sends the current Session on the scope
140130
*/

0 commit comments

Comments
 (0)