Skip to main content

BytesMetricExt

Trait BytesMetricExt 

Source
pub trait BytesMetricExt {
    // Required method
    fn bytes_counter(
        self,
        name: impl Into<Cow<'static, str>>,
    ) -> BytesCounterMetric;
}
Expand description

Extension trait for DataFusion’s metric system that adds support for byte count metrics that display using human-readable byte sizes (KB, MB, GB) instead of plain count notation.

Required Methods§

Source

fn bytes_counter(self, name: impl Into<Cow<'static, str>>) -> BytesCounterMetric

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BytesMetricExt for MetricBuilder<'_>

Source§

fn bytes_counter(self, name: impl Into<Cow<'static, str>>) -> BytesCounterMetric

Implementors§