pub enum SupervisionEvent {
ActorFailed {
task_id: TaskId,
region_id: RegionId,
outcome: Outcome<(), ()>,
},
DecisionMade {
task_id: TaskId,
region_id: RegionId,
decision: SupervisionDecision,
},
RestartBeginning {
task_id: TaskId,
region_id: RegionId,
attempt: u32,
},
RestartComplete {
task_id: TaskId,
region_id: RegionId,
attempt: u32,
},
RestartFailed {
task_id: TaskId,
region_id: RegionId,
attempt: u32,
outcome: Outcome<(), ()>,
},
BudgetExhausted {
task_id: TaskId,
region_id: RegionId,
total_restarts: u32,
window: Duration,
},
Escalating {
task_id: TaskId,
from_region: RegionId,
to_region: Option<RegionId>,
},
BudgetRefusedRestart {
task_id: TaskId,
region_id: RegionId,
refusal: BudgetRefusal,
},
}Expand description
Trace event for supervision system activity.
These events are recorded for debugging and observability.
Variants§
ActorFailed
An actor failure was detected.
Fields
DecisionMade
A supervision decision was made.
Fields
§
decision: SupervisionDecisionThe supervision decision.
RestartBeginning
An actor restart is beginning.
Fields
RestartComplete
An actor restart completed successfully.
Fields
RestartFailed
An actor restart failed.
Fields
BudgetExhausted
Restart budget was exhausted.
Fields
Escalating
Failure is being escalated to parent.
Fields
BudgetRefusedRestart
A restart was refused due to budget constraints.
Trait Implementations§
Source§impl Clone for SupervisionEvent
impl Clone for SupervisionEvent
Source§fn clone(&self) -> SupervisionEvent
fn clone(&self) -> SupervisionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SupervisionEvent
impl RefUnwindSafe for SupervisionEvent
impl Send for SupervisionEvent
impl Sync for SupervisionEvent
impl Unpin for SupervisionEvent
impl UnsafeUnpin for SupervisionEvent
impl UnwindSafe for SupervisionEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).