Optionalversion: stringOptionaloptions: @opentelemetry/api.TracerOptionsStarts 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.
Important: The callback function is responsible for calling span.end()
to finish the span. Unlike some other OpenTelemetry implementations, the span
is NOT automatically ended when the callback returns. If span.end() is not
called, the span will never be exported and will be silently lost.
Optional_context: @opentelemetry/api.Context | FOptional_fn: Freturn 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: @opentelemetry/api.SpanOptionsSpanOptions used for span creation
Optionalcontext: @opentelemetry/api.ContextContext to use to extract parent
Span The newly created span
Proxy tracer provided by the proxy tracer provider
Since
1.0.0