MCPcopy
hub / github.com/vercel/next.js / startSpan

Method startSpan

packages/next/src/server/lib/trace/tracer.ts:146–146  ·  view source on GitHub ↗

* Starts and returns a new Span representing a logical unit of work. * * This method do NOT modify the current Context by default. In result, any inner span will not * automatically set its parent context to the span created by this method unless manually activate * context via `tracer.g

(type: SpanTypes)

Source from the content-addressed store, hash-verified

144 * handles context activation. (ref: https://github.com/open-telemetry/opentelemetry-js/issues/1923)
145 */
146 startSpan(type: SpanTypes): Span
147 startSpan(type: SpanTypes, options: TracerSpanOptions): Span
148
149 /**

Callers 10

markHydrateCompleteFunction · 0.65
startSpanMethod · 0.65
startSpanMethod · 0.65
renderToHTMLOrFlightImplFunction · 0.65
renderToStreamFunction · 0.65
otel-api.jsFile · 0.65
startSpanMethod · 0.65
n3Function · 0.65
withSpanFunction · 0.65
reportSpanRecursivelyFunction · 0.65

Implementers 1

NextTracerImplpackages/next/src/server/lib/trace/tra

Calls

no outgoing calls

Tested by

no test coverage detected