Struct OtelContext
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§
§impl Clone for OtelContext
impl Clone for OtelContext
§fn clone(&self) -> OtelContext
fn clone(&self) -> OtelContext
Returns a copy 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 more§impl Debug for OtelContext
impl Debug for OtelContext
§impl Default for OtelContext
impl Default for OtelContext
§fn default() -> OtelContext
fn default() -> OtelContext
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for OtelContext
impl<'de> Deserialize<'de> for OtelContext
§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
§impl From<OtelContext> for Context
impl From<OtelContext> for Context
§fn from(data: OtelContext) -> Context
fn from(data: OtelContext) -> Context
Converts to this type from the input type.
§impl PartialEq for OtelContext
impl PartialEq for OtelContext
§impl Serialize for OtelContext
impl Serialize for OtelContext
§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