pub struct PrometheusExporter { /* private fields */ }Expand description
Prometheus metrics exporter.
Implementations§
Source§impl PrometheusExporter
impl PrometheusExporter
Sourcepub fn without_help(self) -> Self
pub fn without_help(self) -> Self
Disable help text (reduces output size).
Sourcepub fn without_type(self) -> Self
pub fn without_type(self) -> Self
Disable type annotations.
Sourcepub fn export(&self, snapshot: &TelemetrySnapshot) -> String
pub fn export(&self, snapshot: &TelemetrySnapshot) -> String
Export snapshot to Prometheus text format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrometheusExporter
impl RefUnwindSafe for PrometheusExporter
impl Send for PrometheusExporter
impl Sync for PrometheusExporter
impl Unpin for PrometheusExporter
impl UnwindSafe for PrometheusExporter
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