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.
Parameters
Section titled “Parameters”context
Section titled “context”The pipeline context of the failed request.
unknown
The thrown value (any type).
options?
Section titled “options?”DeadLetterBehaviorOptions = {}
Effective behavior options (stack inclusion, metadata, redaction).