pub enum TraceError {
MissingEnvVar(String),
InvalidConfig(String),
BackendStatus {
backend: &'static str,
status: u16,
body: String,
},
QueueOverflow {
backend: &'static str,
dropped: usize,
},
Unsupported(&'static str),
Serde(Error),
}Expand description
Errors surfaced by cognis-trace. Exporter-side failures are logged
and counted; this enum exists for builder validation and stats.
Variants§
MissingEnvVar(String)
Required environment variable is unset.
InvalidConfig(String)
Configuration value is invalid (e.g. malformed URL).
BackendStatus
Backend returned a non-2xx status.
Fields
QueueOverflow
Exporter queue overflowed; events were dropped.
Unsupported(&'static str)
Exporter does not support a particular feature (scores, prompts, …).
Serde(Error)
JSON serialization failed.
Trait Implementations§
Source§impl Debug for TraceError
impl Debug for TraceError
Source§impl Display for TraceError
impl Display for TraceError
Source§impl Error for TraceError
impl Error for TraceError
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 TraceError
impl !RefUnwindSafe for TraceError
impl Send for TraceError
impl Sync for TraceError
impl Unpin for TraceError
impl UnsafeUnpin for TraceError
impl !UnwindSafe for TraceError
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