Enum kitsune_p2p_types::transport::KitsuneTransportMetrics [−][src]
pub enum KitsuneTransportMetrics {
Write,
Read,
}
Variants
Implementations
Add to this counter and emit tracing event
pub fn count_filter<N, E>(metric: Self, n: N, filter: &str) where
E: Debug,
TryFromIntError: From<E>,
N: TryInto<u64, Error = E>,
pub fn count_filter<N, E>(metric: Self, n: N, filter: &str) where
E: Debug,
TryFromIntError: From<E>,
N: TryInto<u64, Error = E>,
Add to this counter and emit tracing event
with a field that can be used as a filter.
You can filter for this [metric_count{filter=my_filter}]
.
Or to get all without filters [metric_count{filter=none}]
.
pub fn count_silent<N, E>(metric: Self, n: N) -> u64 where
E: Debug,
TryFromIntError: From<E>,
N: TryInto<u64, Error = E>,
pub fn count_silent<N, E>(metric: Self, n: N) -> u64 where
E: Debug,
TryFromIntError: From<E>,
N: TryInto<u64, Error = E>,
Add to this counter without emit tracing event
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KitsuneTransportMetrics
impl Send for KitsuneTransportMetrics
impl Sync for KitsuneTransportMetrics
impl Unpin for KitsuneTransportMetrics
impl UnwindSafe for KitsuneTransportMetrics
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more