pub struct EightyTwentyConfig {
pub enabled: bool,
pub critical_spans: Vec<String>,
pub required_attributes: Vec<String>,
pub optional_attributes: Vec<String>,
pub critical_span_coverage: f64,
pub required_attribute_coverage: f64,
pub optional_attribute_coverage: f64,
}Expand description
80/20 validation mode configuration
Focuses validation on the critical 20% of telemetry that provides 80% of value.
Fields§
§enabled: boolEnable 80/20 validation mode Default: false (only applies when validation.mode = “80_20”)
critical_spans: Vec<String>Critical spans that MUST be present Example: [“clnrm.test.execute”, “clnrm.container.start”]
required_attributes: Vec<String>Required attributes that MUST be present on all spans Example: [“clnrm.version”, “test.hermetic”]
optional_attributes: Vec<String>Optional attributes (counted for coverage, but don’t fail if missing) Example: [“service.name”, “container.image”]
critical_span_coverage: f64Minimum critical span coverage (percentage) Default: 100.0 (all critical spans must be present)
required_attribute_coverage: f64Minimum required attribute coverage (percentage) Default: 100.0 (all required attributes must be present)
optional_attribute_coverage: f64Minimum optional attribute coverage (percentage) Default: 50.0 (at least 50% of optional attributes should be present)
Implementations§
Trait Implementations§
Source§impl Clone for EightyTwentyConfig
impl Clone for EightyTwentyConfig
Source§fn clone(&self) -> EightyTwentyConfig
fn clone(&self) -> EightyTwentyConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EightyTwentyConfig
impl Debug for EightyTwentyConfig
Source§impl Default for EightyTwentyConfig
impl Default for EightyTwentyConfig
Source§impl<'de> Deserialize<'de> for EightyTwentyConfig
impl<'de> Deserialize<'de> for EightyTwentyConfig
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>,
Auto Trait Implementations§
impl Freeze for EightyTwentyConfig
impl RefUnwindSafe for EightyTwentyConfig
impl Send for EightyTwentyConfig
impl Sync for EightyTwentyConfig
impl Unpin for EightyTwentyConfig
impl UnwindSafe for EightyTwentyConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request