pub struct MetricScope { /* private fields */ }Expand description
Logical scope for a registered metric group.
A scope is registry metadata for grouping/filtering registered metric groups. It does not rewrite metric names emitted by the metric group.
Downstream crates should expose their accepted runtime type and scope names rather than asking callers to guess the exact dependency edge.
Implementations§
Trait Implementations§
Source§impl Clone for MetricScope
impl Clone for MetricScope
Source§fn clone(&self) -> MetricScope
fn clone(&self) -> MetricScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricScope
impl Debug for MetricScope
impl Eq for MetricScope
Source§impl From<&'static str> for MetricScope
impl From<&'static str> for MetricScope
Source§impl From<String> for MetricScope
impl From<String> for MetricScope
Source§impl Hash for MetricScope
impl Hash for MetricScope
Source§impl Ord for MetricScope
impl Ord for MetricScope
Source§fn cmp(&self, other: &MetricScope) -> Ordering
fn cmp(&self, other: &MetricScope) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetricScope
impl PartialEq for MetricScope
Source§impl PartialOrd for MetricScope
impl PartialOrd for MetricScope
impl StructuralPartialEq for MetricScope
Auto Trait Implementations§
impl Freeze for MetricScope
impl RefUnwindSafe for MetricScope
impl Send for MetricScope
impl Sync for MetricScope
impl Unpin for MetricScope
impl UnsafeUnpin for MetricScope
impl UnwindSafe for MetricScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request