MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / getActivePageLoadSpan

Function getActivePageLoadSpan

packages/vue/src/router.ts:143–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141}
142
143function getActivePageLoadSpan(): Span | undefined {
144 const span = getActiveSpan();
145 const rootSpan = span && getRootSpan(span);
146
147 if (!rootSpan) {
148 return undefined;
149 }
150
151 const op = spanToJSON(rootSpan).op;
152
153 return op === 'pageload' ? rootSpan : undefined;
154}

Callers 1

instrumentVueRouterFunction · 0.85

Calls 3

getActiveSpanFunction · 0.90
spanToJSONFunction · 0.90
getRootSpanFunction · 0.85

Tested by

no test coverage detected