pub struct LogExporter<C, B>where
B: Builder,{ /* private fields */ }
Expand description
Exports metrics by converting them to a textual representation and logging them.
Implementations§
Source§impl<C, B> LogExporter<C, B>
impl<C, B> LogExporter<C, B>
Sourcepub fn new(
controller: C,
builder: B,
level: Level,
interval: Duration,
) -> LogExporter<C, B>
pub fn new( controller: C, builder: B, level: Level, interval: Duration, ) -> LogExporter<C, B>
Creates a new LogExporter
that logs at the configurable level.
Observers expose their output by being converted into strings.
Auto Trait Implementations§
impl<C, B> Freeze for LogExporter<C, B>
impl<C, B> RefUnwindSafe for LogExporter<C, B>
impl<C, B> Send for LogExporter<C, B>
impl<C, B> Sync for LogExporter<C, B>
impl<C, B> Unpin for LogExporter<C, B>
impl<C, B> UnwindSafe for LogExporter<C, B>
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