createHandoffSpan
function createHandoffSpan(options?, parent?): Span<HandoffSpanData>
Create a new handoff span. The span will not be started automatically, you should either
use withHandoffSpan()
or call span.start()
and span.end()
manually.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
|
|
Optional span creation options, including span data and identifiers. |
|
The parent span or trace. If not provided, the current trace/span will be used automatically. |
Returns
Section titled “Returns”Span
<HandoffSpanData
>
The newly created handoff span.