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

Function startSpan

packages/opentelemetry/src/trace.ts:118–120  ·  view source on GitHub ↗
(options: OpenTelemetrySpanContext, callback: (span: Span) => T)

Source from the content-addressed store, hash-verified

116 * it may just be a non-recording span if the span is not sampled or if tracing is disabled.
117 */
118export function startSpan<T>(options: OpenTelemetrySpanContext, callback: (span: Span) => T): T {
119 return _startSpan(options, callback, true);
120}
121
122/**
123 * Similar to `Sentry.startSpan`. Wraps a function with a span, but does not finish the span

Callers 6

trace.test.tsFile · 0.90
scope.test.tsFile · 0.90

Calls 1

_startSpanFunction · 0.85

Tested by

no test coverage detected