error
Error types for the observability plugin system
Type Aliases
Section titled “Type Aliases”ObservabilityResult
Section titled “ObservabilityResult”type ObservabilityResult = Result<T, ObservabilityError>;Result type for observability operations
ObservabilityError
Section titled “ObservabilityError”Comprehensive error types for observability operations
Variants
| Variant | Description |
|---|---|
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
configuration
Section titled “configuration”fn configuration<impl Into<String>>(message: impl Into) -> SelfCreate a configuration error
serialization
Section titled “serialization”fn serialization<impl Into<String>>(message: impl Into) -> SelfCreate a serialization error
transport
Section titled “transport”fn transport<impl Into<String>>(message: impl Into) -> SelfCreate a transport error
trace_context
Section titled “trace_context”fn trace_context<impl Into<String>>(message: impl Into) -> SelfCreate a trace context error
metric
Section titled “metric”fn metric<impl Into<String>>(message: impl Into) -> SelfCreate a metric error
logging
Section titled “logging”fn logging<impl Into<String>>(message: impl Into) -> SelfCreate a logging error
batching
Section titled “batching”fn batching<impl Into<String>>(message: impl Into) -> SelfCreate a batching error
buffer
Section titled “buffer”fn buffer<impl Into<String>>(message: impl Into) -> SelfCreate a buffer error
feature_not_enabled
Section titled “feature_not_enabled”fn feature_not_enabled<impl Into<String>>(feature: impl Into) -> SelfCreate a feature not enabled error
generic
Section titled “generic”fn generic<impl Into<String>>(message: impl Into) -> SelfCreate a generic error