pub enum ObservabilityError {
Configuration {
message: String,
},
Serialization {
message: String,
},
Transport {
message: String,
},
TraceContext {
message: String,
},
Metric {
message: String,
},
Logging {
message: String,
},
Batching {
message: String,
},
Buffer {
message: String,
},
FeatureNotEnabled {
feature: String,
},
Generic {
message: String,
},
}Expand description
Comprehensive error types for observability operations
Variants§
Configuration
Configuration errors
Serialization
Serialization/deserialization errors
Transport
Network/transport errors
TraceContext
Trace context propagation errors
Metric
Metric collection errors
Logging
Logging errors
Batching
Batching system errors
Buffer
Buffer overflow or memory errors
FeatureNotEnabled
Feature not enabled
Generic
Generic errors for compatibility
Implementations§
Source§impl ObservabilityError
impl ObservabilityError
Sourcepub fn configuration(message: impl Into<String>) -> Self
pub fn configuration(message: impl Into<String>) -> Self
Create a configuration error
Sourcepub fn serialization(message: impl Into<String>) -> Self
pub fn serialization(message: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn trace_context(message: impl Into<String>) -> Self
pub fn trace_context(message: impl Into<String>) -> Self
Create a trace context error
Sourcepub fn feature_not_enabled(feature: impl Into<String>) -> Self
pub fn feature_not_enabled(feature: impl Into<String>) -> Self
Create a feature not enabled error
Trait Implementations§
Source§impl Clone for ObservabilityError
impl Clone for ObservabilityError
Source§fn clone(&self) -> ObservabilityError
fn clone(&self) -> ObservabilityError
Returns a duplicate of the value. Read more
1.0.0 · 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 ObservabilityError
impl Debug for ObservabilityError
Source§impl Display for ObservabilityError
impl Display for ObservabilityError
Source§impl Error for ObservabilityError
impl Error for ObservabilityError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ObservabilityError
impl RefUnwindSafe for ObservabilityError
impl Send for ObservabilityError
impl Sync for ObservabilityError
impl Unpin for ObservabilityError
impl UnsafeUnpin for ObservabilityError
impl UnwindSafe for ObservabilityError
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