NoopTracer
Defined in: src/tracing/NoopTracer.ts:27
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NoopTracer():
NoopTracer
Returns
Section titled “Returns”NoopTracer
Methods
Section titled “Methods”activeSpan()
Section titled “activeSpan()”activeSpan():
Span|null
Defined in: src/tracing/NoopTracer.ts:30
Active span on this async stack, or null outside any active scope.
Returns
Section titled “Returns”Span | null
Implementation of
Section titled “Implementation of”extractContext()
Section titled “extractContext()”extractContext(
_carrier):SpanContext|null
Defined in: src/tracing/NoopTracer.ts:32
Inverse of injectContext — recover a SpanContext from a carrier.
Parameters
Section titled “Parameters”_carrier
Section titled “_carrier”TraceCarrier | null | undefined
Returns
Section titled “Returns”SpanContext | null
Implementation of
Section titled “Implementation of”injectContext()
Section titled “injectContext()”injectContext():
TraceCarrier|null
Defined in: src/tracing/NoopTracer.ts:31
Serialise the active span’s context to a W3C-style carrier — used
by the cluster transport to thread context across the wire.
Returns null when no span is active or the tracer is a noop.
Returns
Section titled “Returns”TraceCarrier | null
Implementation of
Section titled “Implementation of”startSpan()
Section titled “startSpan()”startSpan(
_name,_opts?):Span
Defined in: src/tracing/NoopTracer.ts:28
Parameters
Section titled “Parameters”string
_opts?
Section titled “_opts?”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”withActiveSpan()
Section titled “withActiveSpan()”withActiveSpan<
T>(_span,fn):T
Defined in: src/tracing/NoopTracer.ts:29
Run fn with span as the active span (read by activeSpan()).
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”() => T
Returns
Section titled “Returns”T