MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getCombinedScopeData

Function getCombinedScopeData

packages/core/src/utils/scopeData.ts:124–129  ·  view source on GitHub ↗
(isolationScope: Scope | undefined, currentScope: Scope | undefined)

Source from the content-addressed store, hash-verified

122 * @returns The scope data.
123 */
124export function getCombinedScopeData(isolationScope: Scope | undefined, currentScope: Scope | undefined): ScopeData {
125 const scopeData = getGlobalScope().getScopeData();
126 isolationScope && mergeScopeData(scopeData, isolationScope.getScopeData());
127 currentScope && mergeScopeData(scopeData, currentScope.getScopeData());
128 return scopeData;
129}
130
131function applyDataToEvent(event: Event, data: ScopeData): void {
132 const { extra, tags, user, contexts, level, transactionName } = data;

Callers 7

scopeData.test.tsFile · 0.90
startSessionFunction · 0.90
_INTERNAL_captureLogFunction · 0.90
prepareEventFunction · 0.90
_INTERNAL_captureMetricFunction · 0.90
captureSpanFunction · 0.90
getScopeDataFunction · 0.90

Calls 3

getGlobalScopeFunction · 0.90
mergeScopeDataFunction · 0.85
getScopeDataMethod · 0.80

Tested by

no test coverage detected