Skip to main content

TracedJob

@forge/monorepo


@forge/monorepo / backend/src / TracedJob

Type Alias: TracedJob

TracedJob = object

Defined in: backend/src/telemetry/instrument.ts:36

What a job carries so the worker can continue the trace — AC-1.

traceparent is optional, and that is a compatibility decision rather than laziness: jobs enqueued before this landed are already on the queue, and a worker that required the field would fail every one of them. A job without it starts a new trace, which is a missing link in one trace rather than a lost run.

enqueuedAt rides along for the same reason claim latency cannot be measured on one side: the worker needs to know when the producer let go. Taken from the producer's clock, so the number is only as good as clock skew between the two hosts — stated because a negative claim latency in a dashboard is otherwise a mystery.

Properties

enqueuedAt?

readonly optional enqueuedAt?: string

Defined in: backend/src/telemetry/instrument.ts:38


traceparent?

readonly optional traceparent?: string

Defined in: backend/src/telemetry/instrument.ts:37