OpenTelemetryTracer

OpenTelemetryTracer

Wrapper for creating OpenTelemetry Spans

Constructor

new OpenTelemetryTracer()

Methods

createSpan(spanName, attributesnullable, parentnullable)

Creates a new span with the given properties

Parameters:
Name Type Attributes Description
spanName string

the name for the span

attributes Attributes <nullable>

an object containing the attributes to be set for the span

parent SpanContext <nullable>

the context of the parent span to link to the span