pub struct OtelContext {
    pub attributes: BTreeMap<String, Value>,
    pub resource: BTreeMap<String, Value>,
    pub other: BTreeMap<String, Value>,
}Expand description
OpenTelemetry context
Fields§
§attributes: BTreeMap<String, Value>OpenTelemetry general attributes.
resource: BTreeMap<String, Value>OpenTelemetry resource attributes, describing the entity producing telemetry.
other: BTreeMap<String, Value>Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for OtelContext
 
impl Clone for OtelContext
Source§fn clone(&self) -> OtelContext
 
fn clone(&self) -> OtelContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for OtelContext
 
impl Debug for OtelContext
Source§impl Default for OtelContext
 
impl Default for OtelContext
Source§fn default() -> OtelContext
 
fn default() -> OtelContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OtelContext
 
impl<'de> Deserialize<'de> for OtelContext
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<OtelContext, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<OtelContext, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OtelContext> for Context
 
impl From<OtelContext> for Context
Source§fn from(data: OtelContext) -> Context
 
fn from(data: OtelContext) -> Context
Converts to this type from the input type.
Source§impl PartialEq for OtelContext
 
impl PartialEq for OtelContext
Source§impl Serialize for OtelContext
 
impl Serialize for OtelContext
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for OtelContext
Auto Trait Implementations§
impl Freeze for OtelContext
impl RefUnwindSafe for OtelContext
impl Send for OtelContext
impl Sync for OtelContext
impl Unpin for OtelContext
impl UnwindSafe for OtelContext
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