pub struct EdgeMetrics { /* private fields */ }Expand description
Process-local edge counters.
Implementations§
Source§impl EdgeMetrics
impl EdgeMetrics
Sourcepub fn snapshot(&self) -> MetricsSnapshot
pub fn snapshot(&self) -> MetricsSnapshot
Read every counter using relaxed ordering.
Sourcepub fn render_prometheus(&self) -> String
pub fn render_prometheus(&self) -> String
Render all counters in the Prometheus text exposition format.
Metric names and help strings are fixed. The only label is reason, on
the two breakdowns, and its values come from the closed FreeReason
and UnaccountedReason enums. Nothing carries a tenant, customer,
method, or tool label, which keeps cardinality and privacy risk
bounded.
Trait Implementations§
Source§impl Debug for EdgeMetrics
impl Debug for EdgeMetrics
Auto Trait Implementations§
impl !Freeze for EdgeMetrics
impl RefUnwindSafe for EdgeMetrics
impl Send for EdgeMetrics
impl Sync for EdgeMetrics
impl Unpin for EdgeMetrics
impl UnsafeUnpin for EdgeMetrics
impl UnwindSafe for EdgeMetrics
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