pub struct TelemetryPipeline { /* private fields */ }Expand description
The full pipeline — owns the buffer, an uploader, and a background flush task.
Callers get a cheap TelemetryBuffer clone via TelemetryPipeline::buffer so hot
paths do not need to pay for the uploader machinery.
Implementations§
Source§impl TelemetryPipeline
impl TelemetryPipeline
pub fn new(config: ProxyTelemetryConfig) -> Self
pub fn buffer(&self) -> TelemetryBuffer
pub fn config(&self) -> &ProxyTelemetryConfig
Sourcepub fn start(&mut self, auth: TelemetryAuth) -> Result<()>
pub fn start(&mut self, auth: TelemetryAuth) -> Result<()>
Wire up the uploader and start the flush task. No-op when telemetry is disabled
or when endpoint is not set.
Auto Trait Implementations§
impl Freeze for TelemetryPipeline
impl !RefUnwindSafe for TelemetryPipeline
impl Send for TelemetryPipeline
impl Sync for TelemetryPipeline
impl Unpin for TelemetryPipeline
impl UnsafeUnpin for TelemetryPipeline
impl !UnwindSafe for TelemetryPipeline
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