pub struct OtelContext {
pub attributes: Map<String, Value>,
pub resource: Map<String, Value>,
pub other: Map<String, Value>,
}
Expand description
OpenTelemetry context
Fields§
§attributes: Map<String, Value>
OpenTelemetry general attributes.
resource: Map<String, Value>
OpenTelemetry resource attributes, describing the entity producing telemetry.
other: Map<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<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
Source§impl From<OtelContext> for Context
impl From<OtelContext> for Context
Source§fn from(data: OtelContext) -> Self
fn from(data: OtelContext) -> Self
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
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