Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SpanOptions

Options needed for span creation

Hierarchy

  • SpanOptions

Index

Properties

Optional attributes

attributes: Attributes

A spans attributes

Optional kind

kind: SpanKind

The SpanKind of a span

default

SpanKind.INTERNAL

Optional links

links: Link[]

A spans links

Optional parent

parent: Span | SpanContext | null

This option is NOT RECOMMENDED for normal use and should ONLY be used if your application manages context manually without the global context manager, or you are trying to override the parent extracted from context.

A parent SpanContext (or Span, for convenience) that the newly-started span will be the child of. This overrides the parent span extracted from the currently active context.

A null value here should prevent the SDK from extracting a parent from the current context, forcing the new span to be a root span.

Optional startTime

startTime: undefined | number

A manually specified start time for the created Span object.