Skip to content

createCustomSpan

function createCustomSpan(options, parent?): Span<CustomSpanData>

Create a new custom span. The span will not be started automatically, you should either use withCustomSpan() or call span.start() and span.end() manually.

Parameter Type

options

DeepPartial<CreateSpanOptions<CustomSpanData>> & object

parent?

| Span<any> | Trace

Span<CustomSpanData>