pub enum EventKind {
Show 13 variants
RunStart {
run: String,
wall_ms: Option<u64>,
pid: Option<u32>,
},
CallStart {
call: String,
target: String,
op: String,
},
CacheHit {
call: String,
target: String,
scope: CacheStore,
},
CacheMiss {
call: String,
target: String,
scope: CacheStore,
},
Throttle {
call: String,
target: String,
wait_ms: u64,
},
BreakerReject {
call: String,
target: String,
},
BreakerHalfOpen {
call: String,
target: String,
},
BreakerOpen {
call: String,
target: String,
cooldown_ms: u64,
},
BreakerClose {
call: String,
target: String,
},
AttemptStart {
call: String,
target: String,
attempt: u32,
},
AttemptError {
call: String,
target: String,
attempt: u32,
class: ErrorClass,
http_status: Option<u16>,
},
Backoff {
call: String,
target: String,
attempt: u32,
wait_ms: u64,
},
CallEnd {
call: String,
target: String,
result: String,
code: Option<ErrorCode>,
attempts: u32,
},
}Expand description
The event vocabulary, tagged "event" with snake_case names. call is
the call’s trace_id (the Outcome field), so one call’s events can be
selected out of an interleaved feed; target repeats on every event so a
tail can filter without joining back to call_start.
Variants§
RunStart
Per-run header, always seq 0: names the run and (production sinks
only) anchors it to wall time and a pid.
Fields
CallStart
A call entered the layer chain (every call’s first event; its seq
is the TraceRef anchor).
CacheHit
The cache served the call (attempts stays 0).
CacheMiss
A cache plan existed but held no fresh entry; the call runs live.
Throttle
The rate limiter queued the call for wait_ms (emitted before the
wait begins, so a live tail shows the queueing as it happens).
BreakerReject
An open breaker failed the call fast (KEEL-E012; the effect never ran).
BreakerHalfOpen
Cooldown elapsed: this call is the breaker’s half-open probe.
BreakerOpen
The breaker tripped open (threshold reached, or the probe failed).
BreakerClose
A successful probe closed a previously-open breaker.
AttemptStart
Attempt attempt (1-based) is about to invoke the effect.
AttemptError
Attempt attempt failed with the given class (pre-retry-decision).
Backoff
The retry layer is waiting wait_ms before the next attempt (emitted
before the wait begins).
CallEnd
The call settled (every call’s last event). result mirrors the
Outcome’s "ok" / "error"; code is the terminal error code.