pub trait ExecEventSubscriber {
// Provided methods
fn submit_exemplar(&self, ex: &ExecExemplar<'_>) { ... }
fn submit_advisory(
&self,
op_name: &str,
cycle: u64,
tries_budget: u32,
error_class: &str,
message: &str,
) { ... }
}Expand description
Decorator service: a wrapper subscribes to the structured event sink by implementing this trait (dyn-safe; default methods are the whole service). Override nothing to get the canonical routing; the trait exists so the subscription is a declared, greppable property of the wrapper type rather than an ad-hoc call into logging.
Provided Methods§
Sourcefn submit_exemplar(&self, ex: &ExecExemplar<'_>)
fn submit_exemplar(&self, ex: &ExecExemplar<'_>)
Submit one sampled exemplar to the structured sink.
Sourcefn submit_advisory(
&self,
op_name: &str,
cycle: u64,
tries_budget: u32,
error_class: &str,
message: &str,
)
fn submit_advisory( &self, op_name: &str, cycle: u64, tries_budget: u32, error_class: &str, message: &str, )
Submit one first-sighting retry advisory (default-on signal;
the per-phase AdvisoryGate bounds it).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".