DeadLetter
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Defined in: src/SystemMessages.ts:165
Wraps an undeliverable message sent to dead letters.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DeadLetter(
message,sender,recipient,attribution?):DeadLetter
Defined in: src/SystemMessages.ts:166
Parameters
Section titled “Parameters”message
Section titled “message”unknown
sender
Section titled “sender”ActorRef<unknown> | null
recipient
Section titled “recipient”attribution?
Section titled “attribution?”DeadLetterAttribution = NO_ATTRIBUTION
What the envelope was carrying beyond its payload, where the loss path still had the envelope to copy it from (#773).
Empty everywhere else, and that is honest rather than lazy: a letter
built from a bare message — a projection event, a singleton hand-off, a
Terminated with no provenance — never had an MDC snapshot or a span
context to lose, so an absent field says “there was none”, not “we did
not bother”.
Returns
Section titled “Returns”DeadLetter
Properties
Section titled “Properties”attribution
Section titled “attribution”
readonlyattribution:DeadLetterAttribution=NO_ATTRIBUTION
Defined in: src/SystemMessages.ts:180
What the envelope was carrying beyond its payload, where the loss path still had the envelope to copy it from (#773).
Empty everywhere else, and that is honest rather than lazy: a letter
built from a bare message — a projection event, a singleton hand-off, a
Terminated with no provenance — never had an MDC snapshot or a span
context to lose, so an absent field says “there was none”, not “we did
not bother”.
message
Section titled “message”
readonlymessage:unknown
Defined in: src/SystemMessages.ts:167
recipient
Section titled “recipient”
readonlyrecipient:ActorRef
Defined in: src/SystemMessages.ts:169
sender
Section titled “sender”
readonlysender:ActorRef<unknown> |null
Defined in: src/SystemMessages.ts:168
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: src/SystemMessages.ts:192
Deliberately unchanged by the attribution (#773).
The MDC routinely carries tenant, user and request identifiers, and this
string is what an operator pastes into an issue. DeadLetterRef already
keeps the payload out of its log line for exactly that reason, and a
toString that printed the context would put the same class of data back
into the same place through a different door. Anything that wants the
attribution reads the field.
Returns
Section titled “Returns”string
