Skip to content

buildDeadLetterRecord

buildDeadLetterRecord(context, error, options?): DeadLetterRecord

Defined in: packages/pipeline-deadletter/src/helpers/build-record.ts:50

Build a transport-neutral DeadLetterRecord from a failed pipeline run.

Non-Error throws are normalized to a record with name: 'unknown' so the transport always receives a well-formed shape.

IPipelineContext

The pipeline context of the failed request.

unknown

The thrown value (any type).

DeadLetterBehaviorOptions = {}

Effective behavior options (stack inclusion, metadata, redaction).

DeadLetterRecord