Creates a span, runs the callback, and ends the span.
The span is guaranteed to be ended exactly once, even if the callback
throws. The callback receives an ISpan that it can attach
attributes to.
The return type of the callback
Callback receiving the span; its return value is forwarded
Optional_options: SpanOptionsThe value returned by fn
A telemetry service that does nothing — used when no exporter is configured.
withSpanstill runs the callback and returns its value, but all span operations are no-ops.Since
0.2.0