#[non_exhaustive]pub enum ConfigureError {
TokenRequired,
AlreadyConfigured,
Logging(SetLoggerError),
Metrics(MetricError),
Trace(TraceError),
ExporterBuildError(ExporterBuildError),
TracingAlreadySetup(SetGlobalDefaultError),
RustLogInvalid(FromEnvError),
LogfireFeatureRequired {
feature_name: &'static str,
functionality: String,
},
InvalidConfigurationValue {
parameter: &'static str,
value: String,
},
Other(Box<dyn Error + Send + Sync>),
}Expand description
An error which may arise when configuring Logfire.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TokenRequired
No token was provided to send to logfire.
AlreadyConfigured
Logfire has already been configured
Logging(SetLoggerError)
Error configuring the log::logger.
Metrics(MetricError)
Error configuring the OpenTelemetry metrics.
Trace(TraceError)
Error configuring the OpenTelemetry tracer.
ExporterBuildError(ExporterBuildError)
OpenTelemetry exporter failed to build
TracingAlreadySetup(SetGlobalDefaultError)
Error installing the OpenTelemetry tracer.
RustLogInvalid(FromEnvError)
Error parsing the RUST_LOG environment variable.
LogfireFeatureRequired
A Rust feature needs to be enabled in the Cargo.toml.
Fields
InvalidConfigurationValue
A configuration value (from environment) was invalid.
Fields
Other(Box<dyn Error + Send + Sync>)
Any other error.
Trait Implementations§
Source§impl Debug for ConfigureError
impl Debug for ConfigureError
Source§impl Display for ConfigureError
impl Display for ConfigureError
Source§impl Error for ConfigureError
impl Error for ConfigureError
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()
Source§impl From<ExporterBuildError> for ConfigureError
impl From<ExporterBuildError> for ConfigureError
Source§fn from(source: ExporterBuildError) -> Self
fn from(source: ExporterBuildError) -> Self
Converts to this type from the input type.
Source§impl From<FromEnvError> for ConfigureError
impl From<FromEnvError> for ConfigureError
Source§fn from(source: FromEnvError) -> Self
fn from(source: FromEnvError) -> Self
Converts to this type from the input type.
Source§impl From<MetricError> for ConfigureError
impl From<MetricError> for ConfigureError
Source§fn from(source: MetricError) -> Self
fn from(source: MetricError) -> Self
Converts to this type from the input type.
Source§impl From<SetGlobalDefaultError> for ConfigureError
impl From<SetGlobalDefaultError> for ConfigureError
Source§fn from(source: SetGlobalDefaultError) -> Self
fn from(source: SetGlobalDefaultError) -> Self
Converts to this type from the input type.
Source§impl From<SetLoggerError> for ConfigureError
impl From<SetLoggerError> for ConfigureError
Source§fn from(source: SetLoggerError) -> Self
fn from(source: SetLoggerError) -> Self
Converts to this type from the input type.
Source§impl From<TraceError> for ConfigureError
impl From<TraceError> for ConfigureError
Source§fn from(source: TraceError) -> Self
fn from(source: TraceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigureError
impl !RefUnwindSafe for ConfigureError
impl Send for ConfigureError
impl Sync for ConfigureError
impl Unpin for ConfigureError
impl !UnwindSafe for ConfigureError
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