pub enum EventKind {
Show 19 variants
SubscriberPanicked,
SubscriberOverflow,
ShutdownRequested,
AllStoppedWithinGrace,
GraceExceeded,
TaskStarting,
TaskStopped,
TaskFailed,
TimeoutHit,
BackoffScheduled,
TaskAddRequested,
TaskAdded,
TaskRemoveRequested,
TaskRemoved,
ActorExhausted,
ActorDead,
ControllerRejected,
ControllerSubmitted,
ControllerSlotTransition,
}Expand description
Classification of runtime events.
Variants§
SubscriberPanicked
Subscriber panicked during event processing.
Sets:
task: subscriber namereason: panic info/messageat: wall-clock timestampseq: global sequence
SubscriberOverflow
Subscriber dropped an event (queue full or worker closed).
Sets:
task: subscriber namereason: reason string (e.g., “full”, “closed”)at: wall-clock timestampseq: global sequence
ShutdownRequested
Shutdown requested (OS signal observed).
Sets:
at: wall-clock timestampseq: global sequence
AllStoppedWithinGrace
All tasks stopped within configured grace period.
Sets:
at: wall-clock timestampseq: global sequence
GraceExceeded
Grace period exceeded; some tasks did not stop in time.
Sets:
at: wall-clock timestampseq: global sequence
TaskStarting
Task is starting an attempt.
Sets:
task: task nameattempt: attempt number (1-based, per actor)at: wall-clock timestampseq: global sequence
TaskStopped
Task has stopped (finished successfully or was cancelled gracefully).
Sets:
task: task nameat: wall-clock timestampseq: global sequence
TaskFailed
Task failed with a (non-fatal) error for this attempt.
Sets:
task: task nameattempt: attempt numberreason: failure messageat: wall-clock timestampseq: global sequence
TimeoutHit
Task exceeded its configured timeout for this attempt.
Sets:
task: task nameattempt: attempt numbertimeout_ms: configured attempt timeout (ms)at: wall-clock timestampseq: global sequence
BackoffScheduled
Next attempt scheduled (after success or failure).
Sets:
task: task nameattempt: previous attempt numberdelay_ms: delay before the next attempt (ms)backoff_source:SuccessorFailurereason: last failure message (only for failure-driven backoff)at: wall-clock timestampseq: global sequence
TaskAddRequested
Request to add a new task to the supervisor.
Sets:
task: logical task namespec(private): task spec to spawnat: wall-clock timestampseq: global sequence
TaskAdded
Task was successfully added (actor spawned and registered).
Sets:
task: task nameat: wall-clock timestampseq: global sequence
TaskRemoveRequested
Request to remove a task from the supervisor.
Sets:
task: task nameat: wall-clock timestampseq: global sequence
TaskRemoved
Task was removed from the supervisor (after join/cleanup).
Sets:
task: task nameat: wall-clock timestampseq: global sequence
ActorExhausted
Actor exhausted its restart policy and will not restart.
Emitted when:
RestartPolicy::Never→ task completed (success or handled case)RestartPolicy::OnFailure→ task completed successfully
Sets:
task: task nameattempt: last attempt numberreason: optional messageat: wall-clock timestampseq: global sequence
ActorDead
Actor terminated permanently due to a fatal error.
Emitted when:
- Task returned
TaskError::Fatal - (Future) max retries exceeded
Sets:
task: task nameattempt: last attempt numberreason: fatal error messageat: wall-clock timestampseq: global sequence
ControllerRejected
Controller submission rejected (queue full, add failed, etc).
Sets:
task: slot namereason: rejection reason (“queue_full”, “add_failed: …”, etc)
ControllerSubmitted
Task submitted successfully to controller slot.
Sets:
task: slot namereason: “admission={admission} status={status} depth={N}”
ControllerSlotTransition
Slot transitioned state (Running → Terminating, etc).
Sets:
task: slot namereason: “running→terminating” (Replace), “terminating→idle”, etc