pub struct IntegrationTelemetry { /* private fields */ }Expand description
Composite best-effort telemetry used by first-party adapters.
Implementations§
Source§impl IntegrationTelemetry
impl IntegrationTelemetry
Sourcepub fn with_observer<O>(self, observer: O) -> Selfwhere
O: IntegrationObserver,
pub fn with_observer<O>(self, observer: O) -> Selfwhere
O: IntegrationObserver,
Adds a custom integration observer.
Sourcepub async fn record(&self, event: &IntegrationEvent)
pub async fn record(&self, event: &IntegrationEvent)
Records an event to all observers in registration order.
Trait Implementations§
Source§impl Clone for IntegrationTelemetry
impl Clone for IntegrationTelemetry
Source§fn clone(&self) -> IntegrationTelemetry
fn clone(&self) -> IntegrationTelemetry
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 IntegrationTelemetry
impl Debug for IntegrationTelemetry
Source§impl Default for IntegrationTelemetry
impl Default for IntegrationTelemetry
Source§fn default() -> IntegrationTelemetry
fn default() -> IntegrationTelemetry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for IntegrationTelemetry
impl !UnwindSafe for IntegrationTelemetry
impl Freeze for IntegrationTelemetry
impl Send for IntegrationTelemetry
impl Sync for IntegrationTelemetry
impl Unpin for IntegrationTelemetry
impl UnsafeUnpin for IntegrationTelemetry
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