( options: OpenTelemetrySpanContext, callback: (span: Span, finish: () => void) => T, )
| 130 | * it may just be a non-recording span if the span is not sampled or if tracing is disabled. |
| 131 | */ |
| 132 | export function startSpanManual<T>( |
| 133 | options: OpenTelemetrySpanContext, |
| 134 | callback: (span: Span, finish: () => void) => T, |
| 135 | ): T { |
| 136 | return _startSpan(options, span => callback(span, () => span.end()), false); |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Creates a span. This span is not set as active, so will not get automatic instrumentation spans |
no test coverage detected