pub enum DiagLevel {
Off,
Shape,
ShapeTiming,
ShapeRewriteDiff,
}Expand description
How much detail to record for a request (ordered: higher = more verbose).
Variants§
Off
No recording/export beyond the always-on minimum. Near-zero cost.
Shape
Shape-only spans (ids, names, sizes), the standard causal trace.
ShapeTiming
Shapes plus per-stage timing.
ShapeRewriteDiff
Shapes, timing, and the rewrite before/after shape diff (never values).
Implementations§
Source§impl DiagLevel
impl DiagLevel
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The level’s stable wire name, the inverse of the publish/header parser,
so an introspected directive’s level re-publishes verbatim.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Parses a level’s wire name back to the level, the inverse of
DiagLevel::as_str, so the publish/header/etcd vocabularies share one
source of truth. None if the name is not a known level (fail-closed).
Trait Implementations§
impl Copy for DiagLevel
impl Eq for DiagLevel
Source§impl Ord for DiagLevel
impl Ord for DiagLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DiagLevel
impl PartialOrd for DiagLevel
impl StructuralPartialEq for DiagLevel
Auto Trait Implementations§
impl Freeze for DiagLevel
impl RefUnwindSafe for DiagLevel
impl Send for DiagLevel
impl Sync for DiagLevel
impl Unpin for DiagLevel
impl UnsafeUnpin for DiagLevel
impl UnwindSafe for DiagLevel
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