interface SpanOptions
Since 0.2.0

Options for span creation.

Properties

readonly
optional
kind: SpanKind

The span kind (defaults to 'internal').

readonly
optional
attributes: Readonly<Record<string, SpanAttributeValue>>

Initial attributes to set on the span.

Since 0.2.0
readonly
optional
parentContext: TelemetryContext

Optional parent context for span parenting.

When set, the real implementation uses this as the OTel parent context.

Usage

import { type SpanOptions } from "common/src/index.ts";