pub struct ResilienceTrace {
pub retry_count: u32,
pub circuit_open: bool,
pub budget_exceeded: bool,
pub upstream_errors: Vec<String>,
pub timeout_type: Option<String>,
}Expand description
Structured trace of resilience-related events during a proxy request.
Fields§
§retry_count: u32Number of retry attempts for this request. Currently unused; reserved for future retry support.
circuit_open: boolWhether the circuit breaker was open when this request was attempted.
budget_exceeded: boolWhether the request body budget was exceeded (rules skipped).
upstream_errors: Vec<String>Upstream errors encountered (non-2xx, connection errors).
timeout_type: Option<String>P3: Timeout classification (e.g., “connect”, “read”, “total”, “tls”).
Trait Implementations§
Source§impl Clone for ResilienceTrace
impl Clone for ResilienceTrace
Source§fn clone(&self) -> ResilienceTrace
fn clone(&self) -> ResilienceTrace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResilienceTrace
impl Debug for ResilienceTrace
Source§impl Default for ResilienceTrace
impl Default for ResilienceTrace
Source§fn default() -> ResilienceTrace
fn default() -> ResilienceTrace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResilienceTrace
impl<'de> Deserialize<'de> for ResilienceTrace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResilienceTrace
impl RefUnwindSafe for ResilienceTrace
impl Send for ResilienceTrace
impl Sync for ResilienceTrace
impl Unpin for ResilienceTrace
impl UnsafeUnpin for ResilienceTrace
impl UnwindSafe for ResilienceTrace
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