pub enum ObsErrorCategory {
Io,
Serialization,
Corruption,
Schema,
Parsing,
Storage,
Concurrency,
Constraints,
Query,
Cancelled,
Timeout,
Other,
}Expand description
Bounded, telemetry-safe error categories. The total count is small and
fixed, making as_str() values safe as metric/span attribute values.
Variants§
Io
Filesystem / OS I/O, paths, timeouts.
Serialization
(De)serialization and type-conversion failures.
Corruption
On-disk data corruption / checksum failures.
Schema
Schema / catalog problems.
Parsing
Binary-format / CQL text parsing failures.
Storage
Storage-engine, memory, index, compaction, locking.
Concurrency
Concurrency / transaction failures.
Constraints
Constraint violations and conflicts.
Query
Query execution / unsupported queries / bad input.
Cancelled
A cooperative cancellation / abort (issue #2264). Kept distinct from
Other (and never Io) so dashboards can see cancellation rate
separately from genuine errors — a cancelled do_get is an expected
outcome, not a fault.
Timeout
A query exceeded its configured execution budget
(query.max_execution_time, issue #1695). Its OWN bucket, never
Corruption (an operator-imposed deadline is not damaged data) and never
the generic Other bucket (a rising timeout rate is the signal that the budget
is too tight or a scan has regressed — the one thing dashboards must see).
Other
Everything else: configuration, invalid state/operation, not-found,
internal, platform. NOT a catch-all — [classify] names every Error
variant explicitly, so a new variant lands here only when a human puts it
here (see the module-doc taxonomy table).
Implementations§
Trait Implementations§
Source§impl Clone for ObsErrorCategory
impl Clone for ObsErrorCategory
Source§fn clone(&self) -> ObsErrorCategory
fn clone(&self) -> ObsErrorCategory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ObsErrorCategory
Source§impl Debug for ObsErrorCategory
impl Debug for ObsErrorCategory
Source§impl Display for ObsErrorCategory
impl Display for ObsErrorCategory
impl Eq for ObsErrorCategory
Source§impl Hash for ObsErrorCategory
impl Hash for ObsErrorCategory
Source§impl PartialEq for ObsErrorCategory
impl PartialEq for ObsErrorCategory
impl StructuralPartialEq for ObsErrorCategory
Auto Trait Implementations§
impl Freeze for ObsErrorCategory
impl RefUnwindSafe for ObsErrorCategory
impl Send for ObsErrorCategory
impl Sync for ObsErrorCategory
impl Unpin for ObsErrorCategory
impl UnsafeUnpin for ObsErrorCategory
impl UnwindSafe for ObsErrorCategory
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.