Skip to content

error

Error types for the observability plugin system

type ObservabilityResult = Result<T, ObservabilityError>;

Result type for observability operations

Comprehensive error types for observability operations

Variants

VariantDescription
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

Methods

fn configuration<impl Into<String>>(message: impl Into) -> Self

Create a configuration error

fn serialization<impl Into<String>>(message: impl Into) -> Self

Create a serialization error

fn transport<impl Into<String>>(message: impl Into) -> Self

Create a transport error

fn trace_context<impl Into<String>>(message: impl Into) -> Self

Create a trace context error

fn metric<impl Into<String>>(message: impl Into) -> Self

Create a metric error

fn logging<impl Into<String>>(message: impl Into) -> Self

Create a logging error

fn batching<impl Into<String>>(message: impl Into) -> Self

Create a batching error

fn buffer<impl Into<String>>(message: impl Into) -> Self

Create a buffer error

fn feature_not_enabled<impl Into<String>>(feature: impl Into) -> Self

Create a feature not enabled error

fn generic<impl Into<String>>(message: impl Into) -> Self

Create a generic error