pub struct ProjectionRegistration<T>where
T: Observable,{ /* private fields */ }Expand description
Construction-time registration for log/span/metric projection of a payload.
Implementations§
Source§impl<T> ProjectionRegistration<T>where
T: Observable,
impl<T> ProjectionRegistration<T>where
T: Observable,
Sourcepub fn with_log_projector(self, projector: Arc<dyn LogProjector<T>>) -> Self
pub fn with_log_projector(self, projector: Arc<dyn LogProjector<T>>) -> Self
Attaches a log projector.
Sourcepub fn with_span_projector(self, projector: Arc<dyn SpanProjector<T>>) -> Self
pub fn with_span_projector(self, projector: Arc<dyn SpanProjector<T>>) -> Self
Attaches a span projector.
Sourcepub fn with_metric_projector(
self,
projector: Arc<dyn MetricProjector<T>>,
) -> Self
pub fn with_metric_projector( self, projector: Arc<dyn MetricProjector<T>>, ) -> Self
Attaches a metric projector.
Sourcepub fn with_filter(self, filter: Arc<dyn ObservationFilter<T>>) -> Self
pub fn with_filter(self, filter: Arc<dyn ObservationFilter<T>>) -> Self
Attaches a filter evaluated before projection.
Sourcepub fn into_parts(
self,
) -> (Option<Arc<dyn LogProjector<T>>>, Option<Arc<dyn SpanProjector<T>>>, Option<Arc<dyn MetricProjector<T>>>, Option<Arc<dyn ObservationFilter<T>>>)
pub fn into_parts( self, ) -> (Option<Arc<dyn LogProjector<T>>>, Option<Arc<dyn SpanProjector<T>>>, Option<Arc<dyn MetricProjector<T>>>, Option<Arc<dyn ObservationFilter<T>>>)
Splits the registration into its projector components and optional filter.
Trait Implementations§
Source§impl<T> Clone for ProjectionRegistration<T>where
T: Observable + Clone,
impl<T> Clone for ProjectionRegistration<T>where
T: Observable + Clone,
Source§fn clone(&self) -> ProjectionRegistration<T>
fn clone(&self) -> ProjectionRegistration<T>
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<T> Default for ProjectionRegistration<T>where
T: Observable,
impl<T> Default for ProjectionRegistration<T>where
T: Observable,
Auto Trait Implementations§
impl<T> Freeze for ProjectionRegistration<T>
impl<T> !RefUnwindSafe for ProjectionRegistration<T>
impl<T> Send for ProjectionRegistration<T>
impl<T> Sync for ProjectionRegistration<T>
impl<T> Unpin for ProjectionRegistration<T>
impl<T> UnsafeUnpin for ProjectionRegistration<T>
impl<T> !UnwindSafe for ProjectionRegistration<T>
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