actix-web-prometheus 0.1.2

Actix web middleware for prometheus metrics
Documentation
1
2
3
4
5
6
7
8
9
//! Module which defines error which can happen within this crate
use thiserror::Error;

/// Error type that describes all possible errors.
#[derive(Debug, Error)]
pub enum Error {
    #[error("Prometheus error: {0}")]
    Prometheus(#[from] prometheus::Error),
}