@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
17 lines (14 loc) • 420 B
JavaScript
import { context } from '@opentelemetry/api';
import { getScopesFromContext } from '@sentry/opentelemetry';
/**
* Update the active isolation scope.
* Should be used with caution!
*/
function setIsolationScope(isolationScope) {
const scopes = getScopesFromContext(context.active());
if (scopes) {
scopes.isolationScope = isolationScope;
}
}
export { setIsolationScope };
//# sourceMappingURL=scope.js.map