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

Function startSpanManual

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

Source from the content-addressed store, hash-verified

130 * it may just be a non-recording span if the span is not sampled or if tracing is disabled.
131 */
132export function startSpanManual<T>(
133 options: OpenTelemetrySpanContext,
134 callback: (span: Span, finish: () => void) => T,
135): T {
136 return _startSpan(options, span => callback(span, () => span.end()), false);
137}
138
139/**
140 * Creates a span. This span is not set as active, so will not get automatic instrumentation spans

Callers 1

trace.test.tsFile · 0.90

Calls 3

_startSpanFunction · 0.85
endMethod · 0.65
callbackFunction · 0.50

Tested by

no test coverage detected