Struct iroh_dns_server::metrics::Metrics
source · pub struct Metrics {Show 15 fields
pub pkarr_publish_update: Counter,
pub pkarr_publish_noop: Counter,
pub dns_requests: Counter,
pub dns_requests_udp: Counter,
pub dns_requests_https: Counter,
pub dns_lookup_success: Counter,
pub dns_lookup_notfound: Counter,
pub dns_lookup_error: Counter,
pub http_requests: Counter,
pub http_requests_success: Counter,
pub http_requests_error: Counter,
pub http_requests_duration_ms: Counter,
pub store_packets_inserted: Counter,
pub store_packets_removed: Counter,
pub store_packets_updated: Counter,
}
Expand description
Metrics for iroh-dns-server
Fields§
§pkarr_publish_update: Counter
§pkarr_publish_noop: Counter
§dns_requests: Counter
§dns_requests_udp: Counter
§dns_requests_https: Counter
§dns_lookup_success: Counter
§dns_lookup_notfound: Counter
§dns_lookup_error: Counter
§http_requests: Counter
§http_requests_success: Counter
§http_requests_error: Counter
§http_requests_duration_ms: Counter
§store_packets_inserted: Counter
§store_packets_removed: Counter
§store_packets_updated: Counter
Trait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)
fn with_metric<T, F>(f: F)
Access to this metrics group to record a metric.
Only records if this metric is registered in the global registry.
§fn try_get() -> Option<&'static Self>
fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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