File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
packages/node-experimental/src Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export {
40
40
setIsolationScope ,
41
41
setCurrentScope ,
42
42
} from './sdk/api' ;
43
+ // eslint-disable-next-line deprecation/deprecation
43
44
export { getCurrentHub } from './sdk/hub' ;
44
45
45
46
export {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export class SentryContextManager extends AsyncLocalStorageContextManager {
34
34
const scopes : CurrentScopes = { scope : newCurrentScope , isolationScope } ;
35
35
36
36
// We also need to "mock" the hub on the context, as the original @sentry/opentelemetry uses that...
37
+ // eslint-disable-next-line deprecation/deprecation
37
38
const mockHub = { ...getCurrentHub ( ) , getScope : ( ) => scopes . scope } ;
38
39
39
40
const ctx1 = setHubOnContext ( context , mockHub ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import type { SentryCarrier } from './types';
29
29
/** Ensure the global hub is our proxied hub. */
30
30
export function setupGlobalHub ( ) : void {
31
31
const carrier = getGlobalCarrier ( ) ;
32
+ // eslint-disable-next-line deprecation/deprecation
32
33
carrier . hub = getCurrentHub ( ) ;
33
34
}
34
35
@@ -142,6 +143,7 @@ function _sendSessionUpdate(): void {
142
143
* Set a mocked hub on the current carrier.
143
144
*/
144
145
export function setLegacyHubOnCarrier ( carrier : SentryCarrier ) : boolean {
146
+ // eslint-disable-next-line deprecation/deprecation
145
147
carrier . hub = getCurrentHub ( ) ;
146
148
return true ;
147
149
}
You can’t perform that action at this time.
0 commit comments