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

Function _getSpanForScope

packages/core/src/utils/spanOnScope.ts:30–32  ·  view source on GitHub ↗
(scope: ScopeWithMaybeSpan)

Source from the content-addressed store, hash-verified

28 * NOTE: This should NOT be used directly, but is only used internally by the trace methods.
29 */
30export function _getSpanForScope(scope: ScopeWithMaybeSpan): Span | undefined {
31 return derefWeakRef(scope[SCOPE_SPAN_FIELD]);
32}

Callers 6

cloneMethod · 0.90
getScopeDataMethod · 0.90
_INTERNAL_captureLogFunction · 0.90
getActiveSpanFunction · 0.90
_buildSerializedMetricFunction · 0.90
getParentSpanFunction · 0.90

Calls 1

derefWeakRefFunction · 0.90

Tested by

no test coverage detected