Skip to content

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.

Parameter Type Description

options?

DeepPartial<CreateSpanOptions<HandoffSpanData>>

Optional span creation options, including span data and identifiers.

parent?

| Span<any> | Trace

The parent span or trace. If not provided, the current trace/span will be used automatically.

Span<HandoffSpanData>

The newly created handoff span.