Aller au contenu
Français

Envelope

Ce contenu n’est pas encore disponible dans votre langue.

Envelope<T> = object

Defined in: src/internal/Mailbox.ts:5

T = unknown

readonly optional context?: LogContextData

Defined in: src/internal/Mailbox.ts:14

Optional MDC snapshot captured at tell time. Propagated through the actor’s onReceive so log lines emitted while handling this message (and any tells issued from inside it) carry the originating context. See LogContext.


readonly optional enqueuedAtMs?: number

Defined in: src/internal/Mailbox.ts:30

Wall clock at first enqueue, stamped only while the receiving actor has an explain plan enabled — see ActorContext. enableExplainPlan. A stashed message keeps its original stamp when replayed (prependUser does not restamp), so mailbox wait measures the whole time from arrival to handling.


readonly message: T

Defined in: src/internal/Mailbox.ts:6


readonly sender: ActorRef | null

Defined in: src/internal/Mailbox.ts:7


readonly optional trace?: SpanContext

Defined in: src/internal/Mailbox.ts:22

Optional active-span context captured at tell time. If the tracing extension is enabled and the receiver also has it enabled, the receiver’s actor.receive span links back to this one as its parent — producing one coherent trace across actor hops and cluster nodes. See Tracer.