Skip to main content

SpanOptions

@forge/monorepo


@forge/monorepo / backend/src / SpanOptions

Type Alias: SpanOptions

SpanOptions = object

Defined in: backend/src/telemetry/index.ts:87

Properties

attributes?

readonly optional attributes?: Attributes

Defined in: backend/src/telemetry/index.ts:89


kind?

readonly optional kind?: SpanKind

Defined in: backend/src/telemetry/index.ts:88


parent?

readonly optional parent?: string

Defined in: backend/src/telemetry/index.ts:97

The parent, as a traceparent string.

A string rather than a span object, because the parent usually arrives serialized — out of a job payload or an HTTP header — and a port that took a live span would force every producer to keep one alive across a process boundary, which is the one thing it cannot do.