pub enum AttrValue {
String(String),
Bool(bool),
I64(i64),
F64(f64),
StringArray(Vec<String>),
BoolArray(Vec<bool>),
I64Array(Vec<i64>),
F64Array(Vec<f64>),
}Expand description
Attribute value for spans and events. Matches the value types allowed by the OpenTelemetry semantic-convention specification: string, bool, signed 64-bit int, 64-bit float, and homogeneous arrays of each.
Kept as a plain enum (no opentelemetry::Value indirection) so that
non-otel backends can encode it directly without a mapping layer.
Variants§
String(String)
Bool(bool)
I64(i64)
F64(f64)
StringArray(Vec<String>)
BoolArray(Vec<bool>)
I64Array(Vec<i64>)
F64Array(Vec<f64>)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AttrValue
impl<'de> Deserialize<'de> for AttrValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AttrValue
Auto Trait Implementations§
impl Freeze for AttrValue
impl RefUnwindSafe for AttrValue
impl Send for AttrValue
impl Sync for AttrValue
impl Unpin for AttrValue
impl UnsafeUnpin for AttrValue
impl UnwindSafe for AttrValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more