Skip to main content

Interface: WithSpanOptions

Defined in: src/observability/tracer.ts:161

Options for withSpan function.

Extends

  • SpanOptions

Properties

attributes?

readonly optional attributes: Attributes

Defined in: src/observability/tracer.ts:165

Additional attributes to set on the span.

Overrides

SpanOptions.attributes


kind?

optional kind: SpanKind

Defined in: node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts:13

The SpanKind of a span

Default

SpanKind.INTERNAL

Inherited from

SpanOptions.kind


optional links: Link[]

Defined in: node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts:17

Links span to other spans

Inherited from

SpanOptions.links


root?

optional root: boolean

Defined in: node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts:21

The new span should be a root span. (Ignore parent from context).

Inherited from

SpanOptions.root


startTime?

optional startTime: TimeInput

Defined in: node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.d.ts:19

A manually specified start time for the created Span object.

Inherited from

SpanOptions.startTime