pub struct SpanRecord {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub service: String,
pub name: String,
pub start_ts: DateTime<Utc>,
pub end_ts: DateTime<Utc>,
pub status: String,
pub attrs_json: String,
pub events_json: String,
}Fields§
§trace_id: String§span_id: String§parent_span_id: Option<String>§service: String§name: String§start_ts: DateTime<Utc>§end_ts: DateTime<Utc>§status: String§attrs_json: String§events_json: StringImplementations§
Source§impl SpanRecord
impl SpanRecord
pub fn duration_ms(&self) -> i64
Trait Implementations§
Source§impl Clone for SpanRecord
impl Clone for SpanRecord
Source§fn clone(&self) -> SpanRecord
fn clone(&self) -> SpanRecord
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 SpanRecord
impl Debug for SpanRecord
Source§impl<'de> Deserialize<'de> for SpanRecord
impl<'de> Deserialize<'de> for SpanRecord
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 PartialEq for SpanRecord
impl PartialEq for SpanRecord
Source§impl Serialize for SpanRecord
impl Serialize for SpanRecord
impl StructuralPartialEq for SpanRecord
Auto Trait Implementations§
impl Freeze for SpanRecord
impl RefUnwindSafe for SpanRecord
impl Send for SpanRecord
impl Sync for SpanRecord
impl Unpin for SpanRecord
impl UnwindSafe for SpanRecord
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