pub struct TracingConfig { /* private fields */ }Expand description
Configuration for TracingPlugin.
Implementations§
Source§impl TracingConfig
Inherent builders for TracingConfig.
impl TracingConfig
Inherent builders for TracingConfig.
Sourcepub fn with_server_timing(self, enabled: bool) -> Self
pub fn with_server_timing(self, enabled: bool) -> Self
Sourcepub fn with_default_sampled(self, sampled: bool) -> Self
pub fn with_default_sampled(self, sampled: bool) -> Self
Source§impl TracingConfig
impl TracingConfig
pub fn get_emit_traceparent(&self) -> bool
pub fn get_mut_emit_traceparent(&mut self) -> &mut bool
pub fn set_emit_traceparent(&mut self, val: bool) -> &mut Self
pub fn get_emit_request_id(&self) -> bool
pub fn get_mut_emit_request_id(&mut self) -> &mut bool
pub fn set_emit_request_id(&mut self, val: bool) -> &mut Self
pub fn get_emit_server_timing(&self) -> bool
pub fn get_mut_emit_server_timing(&mut self) -> &mut bool
pub fn set_emit_server_timing(&mut self, val: bool) -> &mut Self
pub fn get_server_timing_label(&self) -> &String
pub fn get_mut_server_timing_label(&mut self) -> &mut String
pub fn set_server_timing_label(&mut self, val: String) -> &mut Self
pub fn get_default_sampled(&self) -> bool
pub fn get_mut_default_sampled(&mut self) -> &mut bool
pub fn set_default_sampled(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for TracingConfig
impl Clone for TracingConfig
Source§impl Debug for TracingConfig
impl Debug for TracingConfig
Source§impl Default for TracingConfig
Default construction for TracingConfig.
impl Default for TracingConfig
Default construction for TracingConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default TracingConfig emitting traceparent, X-Request-Id, and Server-Timing.
impl Eq for TracingConfig
Source§impl PartialEq for TracingConfig
impl PartialEq for TracingConfig
impl StructuralPartialEq for TracingConfig
Auto Trait Implementations§
impl Forget for TracingConfig
impl Freeze for TracingConfig
impl Move for TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfigwhere
RawVecInner: Send,
impl Sync for TracingConfigwhere
RawVecInner: Sync,
impl Unpin for TracingConfig
impl UnsafeUnpin for TracingConfig
impl UnwindSafe for TracingConfigwhere
RawVecInner: UnwindSafe,
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.