Expand description
Backend-neutral diagnostics: metric events and structured log events.
Re-exports§
pub use crate::remote::MissReason;
Structs§
- Labels
- Labels shared by layer-scoped events. Logical keys are never labels.
- LogFacade
Logger - The default logger: the
logcrate facade. - Outcome
Labels - Labels of outcome-scoped events (shadow validation and recovery).
- Shadow
Mismatch Details - Bounded details of one confirmed shadow mismatch warning.
- Shadow
Mismatch Diff Details - The difference fields of a confirmed-mismatch warning, present when
mismatch_logging.diffis aboveMismatchDiff::Off. - Shadow
Mismatch Value Details - The whole-value fields of a confirmed-mismatch warning, present when
mismatch_logging.valueis on.
Enums§
- Coalescing
Scope - Where an in-flight execution was shared.
- Compression
Operation - Which envelope direction a compression timing measures.
- Compression
Outcome - Compression outcomes for writes and reads.
- Disabled
Reason - Why a cache layer was skipped.
- Error
Kind - Stable failure sites.
- Event
- One public diagnostic. Counters carry no value; timers report seconds; sizes report bytes.
- Layer
- The cache layer a diagnostic refers to.
- LogEvent
- Structured log events. All are fail-open diagnostics except the invalidation failure, which is also returned to the caller.
- LogLevel
- Severity of a
LogEvent. - Recovery
Outcome - Terminal outcomes of stale-on-error recovery.
- Serialization
Operation - Which codec direction a serialization timing measures.
- Shadow
Mismatch Logging Outcome - Outcomes of one confirmed-mismatch warning attempt. When more than one
failure occurs,
hook_errorranks aboverender_error, which ranks abovelogger_error. - Shadow
Outcome - Terminal outcomes of sampled shadow validation.