pub struct SpanRecord { /* private fields */ }Expand description
Completed request span emitted to registered SpanExporter backends.
Implementations§
Source§impl SpanRecord
impl SpanRecord
pub fn get_trace_id(&self) -> &String
pub fn get_mut_trace_id(&mut self) -> &mut String
pub fn set_trace_id(&mut self, val: String) -> &mut Self
pub fn get_span_id(&self) -> &String
pub fn get_mut_span_id(&mut self) -> &mut String
pub fn set_span_id(&mut self, val: String) -> &mut Self
pub fn get_parent_span_id(&self) -> Option<String>
pub fn try_get_parent_span_id(&self) -> Option<String>
pub fn get_mut_parent_span_id(&mut self) -> &mut Option<String>
pub fn set_parent_span_id(&mut self, val: Option<String>) -> &mut Self
pub fn get_request_id(&self) -> &String
pub fn get_mut_request_id(&mut self) -> &mut String
pub fn set_request_id(&mut self, val: String) -> &mut Self
pub fn get_method(&self) -> &String
pub fn get_mut_method(&mut self) -> &mut String
pub fn set_method(&mut self, val: String) -> &mut Self
pub fn get_path(&self) -> &String
pub fn get_mut_path(&mut self) -> &mut String
pub fn set_path(&mut self, val: String) -> &mut Self
pub fn get_status_code(&self) -> usize
pub fn get_mut_status_code(&mut self) -> &mut usize
pub fn set_status_code(&mut self, val: usize) -> &mut Self
pub fn get_duration_us(&self) -> u64
pub fn get_mut_duration_us(&mut self) -> &mut u64
pub fn set_duration_us(&mut self, val: u64) -> &mut Self
pub fn get_sampled(&self) -> bool
pub fn get_mut_sampled(&mut self) -> &mut bool
pub fn set_sampled(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for SpanRecord
impl Clone for SpanRecord
Source§impl Debug for SpanRecord
impl Debug for SpanRecord
impl Eq for SpanRecord
Source§impl PartialEq for SpanRecord
impl PartialEq for SpanRecord
impl StructuralPartialEq for SpanRecord
Auto Trait Implementations§
impl Forget for SpanRecord
impl Freeze for SpanRecord
impl Move for SpanRecord
impl RefUnwindSafe for SpanRecord
impl Send for SpanRecord
impl Sync for SpanRecord
impl Unpin for SpanRecord
impl UnsafeUnpin for SpanRecord
impl UnwindSafe for SpanRecord
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.