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
Source§impl Default for EdgeMetrics
impl Default for EdgeMetrics
Source§fn default() -> EdgeMetrics
fn default() -> EdgeMetrics
Returns the “default value” for a type. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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