pub struct TrackingDispatcher { /* private fields */ }
Expand description
Central dispatcher that routes tracking operations to appropriate implementations Maintains active tracking strategies and coordinates data collection
Implementations§
Source§impl TrackingDispatcher
impl TrackingDispatcher
Sourcepub fn new(config: DispatcherConfig) -> Self
pub fn new(config: DispatcherConfig) -> Self
Create new tracking dispatcher with configuration
Sourcepub fn select_strategy(
&mut self,
environment: &RuntimeEnvironment,
) -> Result<TrackingStrategy, BackendError>
pub fn select_strategy( &mut self, environment: &RuntimeEnvironment, ) -> Result<TrackingStrategy, BackendError>
Select and activate optimal tracking strategy for given environment
Sourcepub fn activate_tracking(
&mut self,
strategy: TrackingStrategy,
) -> Result<(), BackendError>
pub fn activate_tracking( &mut self, strategy: TrackingStrategy, ) -> Result<(), BackendError>
Activate tracking with selected strategy
Sourcepub fn dispatch_tracking_operation(
&mut self,
operation: TrackingOperation,
) -> Result<(), BackendError>
pub fn dispatch_tracking_operation( &mut self, operation: TrackingOperation, ) -> Result<(), BackendError>
Dispatch tracking operation to active tracker
Sourcepub fn collect_all_data(&mut self) -> Result<Vec<u8>, BackendError>
pub fn collect_all_data(&mut self) -> Result<Vec<u8>, BackendError>
Collect data from all active trackers
Sourcepub fn get_metrics(&self) -> &DispatcherMetrics
pub fn get_metrics(&self) -> &DispatcherMetrics
Get current dispatcher metrics
Auto Trait Implementations§
impl Freeze for TrackingDispatcher
impl !RefUnwindSafe for TrackingDispatcher
impl Send for TrackingDispatcher
impl Sync for TrackingDispatcher
impl Unpin for TrackingDispatcher
impl !UnwindSafe for TrackingDispatcher
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> 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> 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