The parameters for the OITracer constructor
OptionaltraceConfig?: TraceConfigOptionsThe TraceConfigOptions to set to control the behavior of the tracer
The OpenTelemetry Tracer to wrap
Starts a new Span and calls the given function passing it the created span as first argument. Additionally the new span gets set in context and this context is activated for the duration of the function call.
The name of the span
function called in the context of the span and receives the newly created span as an argument
return value of fn
Starts a new Span. Start the span without setting it on context.
This method do NOT modify the current Context.
The name of the span
Optionaloptions: SpanOptionsSpanOptions used for span creation
Optionalcontext: ContextContext to use to extract parent
Span The newly created span
A wrapper around the OpenTelemetry Tracer interface that masks sensitive information based on the passed in TraceConfig.