Interface: StartSpanOptions

Defined in: tracing/types.ts:177

Options for starting a span

Properties

attributes?

optional attributes?: SpanAttributes;

Defined in: tracing/types.ts:185

Initial attributes

kind?

optional kind?: SpanKind;

Defined in: tracing/types.ts:181

Span kind (default: internal)

name

name: string;

Defined in: tracing/types.ts:179

Span name

parentContext?

optional parentContext?: SpanContext;

Defined in: tracing/types.ts:183

Parent span context (if not provided, uses current context)

startTime?

optional startTime?: number;

Defined in: tracing/types.ts:187

Start time override (default: now)