File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
packages/node-experimental/src Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const Integrations = {
21
21
...NodeExperimentalIntegrations ,
22
22
} ;
23
23
24
- export { init } from './sdk/init' ;
24
+ export { init , getDefaultIntegrations } from './sdk/init' ;
25
25
export { getAutoPerformanceIntegrations } from './integrations/getAutoPerformanceIntegrations' ;
26
26
export * as Handlers from './sdk/handlers' ;
27
27
export type { Span } from './types' ;
@@ -40,7 +40,7 @@ export {
40
40
setIsolationScope ,
41
41
setCurrentScope ,
42
42
} from './sdk/api' ;
43
- export { getCurrentHub , makeMain } from './sdk/hub' ;
43
+ export { getCurrentHub } from './sdk/hub' ;
44
44
45
45
export {
46
46
addBreadcrumb ,
@@ -88,6 +88,14 @@ export {
88
88
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
89
89
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
90
90
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 ,
91
99
} from '@sentry/node' ;
92
100
93
101
export type {
@@ -108,4 +116,5 @@ export type {
108
116
Stacktrace ,
109
117
Thread ,
110
118
User ,
119
+ NodeOptions ,
111
120
} from '@sentry/node' ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export function setupGlobalHub(): void {
34
34
35
35
/**
36
36
* This is for legacy reasons, and returns a proxy object instead of a hub to be used.
37
+ * @deprecated Use the methods directly.
37
38
*/
38
39
export function getCurrentHub ( ) : Hub {
39
40
return {
@@ -124,17 +125,6 @@ export function getCurrentHub(): Hub {
124
125
} ;
125
126
}
126
127
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
-
138
128
/**
139
129
* Sends the current Session on the scope
140
130
*/
You can’t perform that action at this time.
0 commit comments