Struct Otlp Attribute Mapping

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct OtlpAttributeMapping {
    pub key: String,
    pub alias: String,
}

Copies a projected OTLP attribute to a second attribute name.

key names the fully-qualified projected attribute and alias names the additional attribute to emit with the same typed value.

Fields

key: String

Fully-qualified projected attribute to copy.

alias: String

Additional attribute name receiving the copied value.

Implementations

impl OtlpAttributeMapping

impl OtlpAttributeMapping

new

pub fn new(key: impl Into<String>, alias: impl Into<String>) -> Self

Creates an attribute mapping.

Trait Implementations

impl Clone for OtlpAttributeMapping

impl Clone for OtlpAttributeMapping

clone

fn clone(&self) -> OtlpAttributeMapping

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for OtlpAttributeMapping

impl Debug for OtlpAttributeMapping

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for OtlpAttributeMapping

impl<'de> Deserialize<'de> for OtlpAttributeMapping

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl EditorConfig for OtlpAttributeMapping

impl EditorConfig for OtlpAttributeMapping

editor_schema

fn editor_schema() -> &'static EditorSchema

impl PartialEq for OtlpAttributeMapping

impl PartialEq for OtlpAttributeMapping

eq

fn eq(&self, other: &OtlpAttributeMapping) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for OtlpAttributeMapping

impl Serialize for OtlpAttributeMapping

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for OtlpAttributeMapping

impl Eq for OtlpAttributeMapping

impl StructuralPartialEq for OtlpAttributeMapping

impl StructuralPartialEq for OtlpAttributeMapping