Skip to content

Commit e4c9e52

Browse files
committed
fix linting
1 parent f759cbb commit e4c9e52

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

packages/node-experimental/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export {
4040
setIsolationScope,
4141
setCurrentScope,
4242
} from './sdk/api';
43+
// eslint-disable-next-line deprecation/deprecation
4344
export { getCurrentHub } from './sdk/hub';
4445

4546
export {

packages/node-experimental/src/otel/contextManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class SentryContextManager extends AsyncLocalStorageContextManager {
3434
const scopes: CurrentScopes = { scope: newCurrentScope, isolationScope };
3535

3636
// We also need to "mock" the hub on the context, as the original @sentry/opentelemetry uses that...
37+
// eslint-disable-next-line deprecation/deprecation
3738
const mockHub = { ...getCurrentHub(), getScope: () => scopes.scope };
3839

3940
const ctx1 = setHubOnContext(context, mockHub);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import type { SentryCarrier } from './types';
2929
/** Ensure the global hub is our proxied hub. */
3030
export function setupGlobalHub(): void {
3131
const carrier = getGlobalCarrier();
32+
// eslint-disable-next-line deprecation/deprecation
3233
carrier.hub = getCurrentHub();
3334
}
3435

@@ -142,6 +143,7 @@ function _sendSessionUpdate(): void {
142143
* Set a mocked hub on the current carrier.
143144
*/
144145
export function setLegacyHubOnCarrier(carrier: SentryCarrier): boolean {
146+
// eslint-disable-next-line deprecation/deprecation
145147
carrier.hub = getCurrentHub();
146148
return true;
147149
}

0 commit comments

Comments
 (0)