[][src]Trait tracing_facade::Tracer

pub trait Tracer: Sync + Send {
    fn record_event(&self, event: Event);
fn flush(&self); fn is_enabled(&self) -> bool { ... }
fn supports_metadata(&self) -> bool { ... } }

A trait encompassing the operations required for tracing.

Required methods

fn record_event(&self, event: Event)

Record an Event to the Tracer.

fn flush(&self)

Flush any previously recorded Events to the Tracer.

Loading content...

Provided methods

fn is_enabled(&self) -> bool

Determines whether the Tracer is enabled.

The trace macros use this to avoid doing work when unneeded.

fn supports_metadata(&self) -> bool

Specifies whether the Tracer can handle additional metadata.

The trace macros use this to avoid constructing a Metadata object which will get immediately thrown away.

Loading content...

Implementors

Loading content...