pub struct CombinedMetricExtractionConfig<'a> { /* private fields */ }Expand description
Combined view of global and project-specific metrics extraction configs.
Implementations§
Source§impl<'a> CombinedMetricExtractionConfig<'a>
 
impl<'a> CombinedMetricExtractionConfig<'a>
Sourcepub fn new(
    global: &'a MetricExtractionGroups,
    project: &'a MetricExtractionConfig,
) -> Self
 
pub fn new( global: &'a MetricExtractionGroups, project: &'a MetricExtractionConfig, ) -> Self
Creates a new combined view from two references.
Sourcepub fn metrics(&self) -> impl Iterator<Item = &MetricSpec>
 
pub fn metrics(&self) -> impl Iterator<Item = &MetricSpec>
Returns an iterator of metric specs.
Returns an iterator of tag mappings.
Trait Implementations§
Source§impl<'a> Clone for CombinedMetricExtractionConfig<'a>
 
impl<'a> Clone for CombinedMetricExtractionConfig<'a>
Source§fn clone(&self) -> CombinedMetricExtractionConfig<'a>
 
fn clone(&self) -> CombinedMetricExtractionConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'a> Debug for CombinedMetricExtractionConfig<'a>
 
impl<'a> Debug for CombinedMetricExtractionConfig<'a>
Source§impl<'a> From<&'a MetricExtractionConfig> for CombinedMetricExtractionConfig<'a>
 
impl<'a> From<&'a MetricExtractionConfig> for CombinedMetricExtractionConfig<'a>
Source§fn from(value: &'a MetricExtractionConfig) -> Self
 
fn from(value: &'a MetricExtractionConfig) -> Self
Creates a combined config with an empty global component. Used in tests.
impl<'a> Copy for CombinedMetricExtractionConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for CombinedMetricExtractionConfig<'a>
impl<'a> RefUnwindSafe for CombinedMetricExtractionConfig<'a>
impl<'a> Send for CombinedMetricExtractionConfig<'a>
impl<'a> Sync for CombinedMetricExtractionConfig<'a>
impl<'a> Unpin for CombinedMetricExtractionConfig<'a>
impl<'a> UnwindSafe for CombinedMetricExtractionConfig<'a>
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,
§impl<T> FutureExt for T
 
impl<T> FutureExt for T
§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>
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request§impl<L> LayerExt<L> for L
 
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
    L: Layer<S>,
 
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
    L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].