request-shadow 0.1.0

Async request mirroring with sampling, divergence detection, and structured response diffs. SRE bread-and-butter for safe migrations. Composes with reliability-toolkit-rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Crate-wide error type.

use thiserror::Error;

/// Anything that can go wrong inside the crate.
#[derive(Debug, Error)]
pub enum ShadowError {
    /// The wrapped backend returned an error.
    #[error("backend failure: {0}")]
    Backend(String),

    /// The shadow leg timed out. The primary call is unaffected.
    #[error("shadow leg timed out")]
    ShadowTimeout,
}