Enum BuildError
pub enum BuildError {
FailedToCreateRuntime(String),
FailedToCreateHTTPListener(String),
FailedToSetGlobalRecorder(SetRecorderError<PrometheusRecorder>),
InvalidAllowlistAddress(String),
InvalidPushGatewayEndpoint(String),
MissingExporterConfiguration,
EmptyBucketsOrQuantiles,
ZeroBucketDuration,
}
Expand description
Errors that could occur while building or installing a Prometheus recorder/exporter.
Variants§
FailedToCreateRuntime(String)
There was an issue when creating the necessary Tokio runtime to launch the exporter.
FailedToCreateHTTPListener(String)
There was an issue when creating the HTTP listener.
FailedToSetGlobalRecorder(SetRecorderError<PrometheusRecorder>)
Installing the recorder did not succeed.
InvalidAllowlistAddress(String)
The given address could not be parsed successfully as an IP address/subnet.
InvalidPushGatewayEndpoint(String)
The given push gateway endpoint is not a valid URI.
MissingExporterConfiguration
No exporter configuration was present.
This generally only occurs when HTTP listener support is disabled, but no push gateway configuration was give to the builder.
EmptyBucketsOrQuantiles
Bucket bounds or quantiles were empty.
ZeroBucketDuration
Bucket duration cannot be zero
Trait Implementations§
§impl Debug for BuildError
impl Debug for BuildError
§impl Display for BuildError
impl Display for BuildError
§impl Error for BuildError
impl Error for BuildError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
§impl From<SetRecorderError<PrometheusRecorder>> for BuildError
impl From<SetRecorderError<PrometheusRecorder>> for BuildError
§fn from(source: SetRecorderError<PrometheusRecorder>) -> BuildError
fn from(source: SetRecorderError<PrometheusRecorder>) -> BuildError
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnwindSafe for BuildError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> MaybeSend for Twhere
T: Send,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
FailedToCreateRuntime
: 24 bytesFailedToCreateHTTPListener
: 24 bytesFailedToSetGlobalRecorder
: 8 bytesInvalidAllowlistAddress
: 24 bytesInvalidPushGatewayEndpoint
: 24 bytesMissingExporterConfiguration
: 0 bytesEmptyBucketsOrQuantiles
: 0 bytesZeroBucketDuration
: 0 bytes