Skip to navigation

Struct Otlp Attribute Mapping

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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>,
) -> OtlpAttributeMapping

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<(), Error>

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

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

deserialize

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

impl JsonSchema for OtlpAttributeMapping

impl JsonSchema for OtlpAttributeMapping

schema_name

fn schema_name() -> String

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

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 as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,

impl Eq for OtlpAttributeMapping

impl Eq for OtlpAttributeMapping

impl StructuralPartialEq for OtlpAttributeMapping

impl StructuralPartialEq for OtlpAttributeMapping