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

Function getContextForScope

packages/opentelemetry/src/trace.ts:279–288  ·  view source on GitHub ↗
(scope?: Scope)

Source from the content-addressed store, hash-verified

277}
278
279function getContextForScope(scope?: Scope): Context {
280 if (scope) {
281 const ctx = getContextFromScope(scope);
282 if (ctx) {
283 return ctx;
284 }
285 }
286
287 return context.active();
288}
289
290/**
291 * Continue a trace from `sentry-trace` and `baggage` values.

Callers 1

getContextFunction · 0.85

Calls 2

getContextFromScopeFunction · 0.90
activeMethod · 0.45

Tested by

no test coverage detected