pub struct PropagateAttributes {
pub user_id: Option<String>,
pub session_id: Option<String>,
pub metadata: Option<Value>,
pub version: Option<String>,
pub tags: Option<Vec<String>>,
pub trace_name: Option<String>,
pub as_baggage: bool,
}Expand description
Attributes that propagate from a parent trace to child spans.
Fields§
§user_id: Option<String>User ID to associate with the trace.
session_id: Option<String>Session ID for grouping traces.
metadata: Option<Value>Arbitrary metadata as JSON.
version: Option<String>Version tag.
Tags for filtering.
trace_name: Option<String>Custom trace name.
as_baggage: boolWhether to propagate as W3C baggage.
Trait Implementations§
Source§impl Clone for PropagateAttributes
impl Clone for PropagateAttributes
Source§fn clone(&self) -> PropagateAttributes
fn clone(&self) -> PropagateAttributes
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 PropagateAttributes
impl Debug for PropagateAttributes
Source§impl Default for PropagateAttributes
impl Default for PropagateAttributes
Source§fn default() -> PropagateAttributes
fn default() -> PropagateAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PropagateAttributes
impl<'de> Deserialize<'de> for PropagateAttributes
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PropagateAttributes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PropagateAttributes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PropagateAttributes
impl PartialEq for PropagateAttributes
Source§impl Serialize for PropagateAttributes
impl Serialize for PropagateAttributes
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 PropagateAttributes
Auto Trait Implementations§
impl Freeze for PropagateAttributes
impl RefUnwindSafe for PropagateAttributes
impl Send for PropagateAttributes
impl Sync for PropagateAttributes
impl Unpin for PropagateAttributes
impl UnsafeUnpin for PropagateAttributes
impl UnwindSafe for PropagateAttributes
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