prover_telemetry/error.rs
1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3 #[error("Unable to bind metrics server: {0}")]
4 UnableToBindMetricsServer(#[from] std::io::Error),
5}
6
7#[derive(Debug, thiserror::Error)]
8pub(crate) enum MetricsError {
9 #[error("Error gathering metrics: {0}")]
10 GatheringMetrics(#[from] prometheus::Error),
11
12 #[error("Error formatting metrics: {0}")]
13 FormattingMetrics(#[from] std::string::FromUtf8Error),
14}