pub struct TracingConfig {
pub enabled: bool,
pub service_name: String,
pub trace_id: Option<String>,
pub sample_rate: f64,
pub capture_console: bool,
pub capture_network: bool,
pub capture_interactions: bool,
}Expand description
Tracing configuration for renacer integration
Fields§
§enabled: boolEnable tracing (default: true)
service_name: StringService name for traces
trace_id: Option<String>Generate trace ID (default: random)
sample_rate: f64Sample rate (0.0 - 1.0, default: 1.0)
capture_console: boolInclude console messages in trace
capture_network: boolInclude network requests in trace
capture_interactions: boolInclude user interactions in trace
Implementations§
Source§impl TracingConfig
impl TracingConfig
Sourcepub fn with_service_name(self, name: impl Into<String>) -> Self
pub fn with_service_name(self, name: impl Into<String>) -> Self
Set service name
Sourcepub fn with_trace_id(self, id: impl Into<String>) -> Self
pub fn with_trace_id(self, id: impl Into<String>) -> Self
Set trace ID
Sourcepub fn with_sample_rate(self, rate: f64) -> Self
pub fn with_sample_rate(self, rate: f64) -> Self
Set sample rate
Sourcepub const fn with_console_capture(self, enabled: bool) -> Self
pub const fn with_console_capture(self, enabled: bool) -> Self
Enable/disable console capture
Sourcepub const fn with_network_capture(self, enabled: bool) -> Self
pub const fn with_network_capture(self, enabled: bool) -> Self
Enable/disable network capture
Trait Implementations§
Source§impl Clone for TracingConfig
impl Clone for TracingConfig
Source§fn clone(&self) -> TracingConfig
fn clone(&self) -> TracingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TracingConfig
impl Debug for TracingConfig
Auto Trait Implementations§
impl Freeze for TracingConfig
impl RefUnwindSafe for TracingConfig
impl Send for TracingConfig
impl Sync for TracingConfig
impl Unpin for TracingConfig
impl UnsafeUnpin for TracingConfig
impl UnwindSafe for TracingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().