Skip to main content

OTelAttributeMapper

Trait OTelAttributeMapper 

Source
pub trait OTelAttributeMapper: Send + Sync {
    // Required method
    fn map_attributes(
        &self,
        input: &HashMap<String, Value>,
    ) -> Vec<(String, String)>;
}
Expand description

Trait for mapping domain-specific attributes to OpenTelemetry key-value pairs.

Required Methods§

Source

fn map_attributes( &self, input: &HashMap<String, Value>, ) -> Vec<(String, String)>

Maps the given attributes into OTel-compatible key-value pairs.

Implementors§