Struct cadence::LoggingMetricSink [] [src]

pub struct LoggingMetricSink { /* fields omitted */ }

Implementation of a MetricSink that emits metrics using thelog! macro.

Metrics are emitted using the LogLevel provided at construction with a target of cadence::metrics. Note that the number of bytes written returned by emit does not reflect if the provided log level is high enough to be active.

Methods

impl LoggingMetricSink
[src]

Trait Implementations

impl Debug for LoggingMetricSink
[src]

Formats the value using the given formatter.

impl Clone for LoggingMetricSink
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl MetricSink for LoggingMetricSink
[src]

Send the Statsd metric using this sink and return the number of bytes written or an I/O error. Read more