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

Function INTERNAL_getSegmentSpan

packages/core/src/utils/spanUtils.ts:427–429  ·  view source on GitHub ↗
(span: SpanWithPotentialChildren)

Source from the content-addressed store, hash-verified

425 * Returns the segment span of a given span.
426 */
427export function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span {
428 return span[ROOT_SPAN_FIELD] || span;
429}
430
431/**
432 * Returns the currently active span.

Callers 2

captureSpanFunction · 0.90
spanToStreamedSpanJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected