pub trait AttributeMapper: Send + Sync + 'static {
    // Required method
    fn map(&self, span_name: &str, name: Cow<'static, str>) -> Cow<'static, str>;
}
Expand description

Map span attributes to record name

Required Methods§

source

fn map(&self, span_name: &str, name: Cow<'static, str>) -> Cow<'static, str>

Given a span name and the name of the attribute, return the mapped attribute name

Trait Implementations§

source§

impl Default for Box<dyn AttributeMapper>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Implementors§

source§

impl<F> AttributeMapper for Fwhere F: for<'a> Fn(&'a str, Cow<'static, str>) -> Cow<'static, str> + Send + Sync + 'static,