Skip to content

Commit eea57bf

Browse files
authored
ref(otel): Remove mentions of hub from comments (#12170)
Just noticed we still mention the hub in the `ContextManager`, removing that.
1 parent d1fc0ef commit eea57bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/opentelemetry/src/contextManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { getScopesFromContext, setContextOnScope, setScopesOnContext } from './u
1111
import { setIsSetup } from './utils/setupCheck';
1212

1313
/**
14-
* Wrap an OpenTelemetry ContextManager in a way that ensures the context is kept in sync with the Sentry Hub.
14+
* Wrap an OpenTelemetry ContextManager in a way that ensures the context is kept in sync with the Sentry Scope.
1515
*
1616
* Usage:
1717
* import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
@@ -23,7 +23,7 @@ export function wrapContextManagerClass<ContextManagerInstance extends ContextMa
2323
): typeof ContextManagerClass {
2424
/**
2525
* This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
26-
* It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.
26+
* It ensures that we create new scopes per context, so that the OTEL Context & the Sentry Scope are always in sync.
2727
*
2828
* Note that we currently only support AsyncHooks with this,
2929
* but since this should work for Node 14+ anyhow that should be good enough.
@@ -37,7 +37,7 @@ export function wrapContextManagerClass<ContextManagerInstance extends ContextMa
3737
}
3838
/**
3939
* Overwrite with() of the original AsyncLocalStorageContextManager
40-
* to ensure we also create a new hub per context.
40+
* to ensure we also create new scopes per context.
4141
*/
4242
public with<A extends unknown[], F extends (...args: A) => ReturnType<F>>(
4343
context: Context,

0 commit comments

Comments
 (0)