TraceApiType

PackageAxial.Telemetry.JavaScript
The subset of the OpenTelemetry JS `trace` api namespace this package calls.

Specification

Kind
Type
Members
2
Examples
0
getTracerSignature
this.getTracer name
setSpanSignature
this.setSpan (context, span)

Summary

NameSignatureSynopsis
getTracerthis.getTracer nameReturns a tracer for the given instrumentation scope name.
setSpanthis.setSpan (context, span)Returns a new context with the given span set as the active span.

getTracer

this.getTracer name
Member
Returns a tracer for the given instrumentation scope name.

Parameters

NameTypeDescription
namestring

Returns

Tracer

setSpan

this.setSpan (context, span)
Member
Returns a new context with the given span set as the active span.

Parameters

NameTypeDescription
contextOtelContext
spanSpan

Returns

OtelContext