pub struct TracingConfig {
pub remote_layer: Option<RemoteTracingLayer>,
pub debug_log_file: Option<String>,
pub chrome_trace_prefix: Option<String>,
pub flamegraph_prefix: Option<String>,
pub trace_identifier: String,
pub profile_level: Option<String>,
pub tokio_console: bool,
pub tokio_console_port: Option<u16>,
}Expand description
Tracing configuration for debugging and profiling
Fields§
§remote_layer: Option<RemoteTracingLayer>Remote tracing layer for distributed tracing
debug_log_file: Option<String>Debug log file path
chrome_trace_prefix: Option<String>Chrome trace output prefix (produces JSON viewable in Perfetto UI)
flamegraph_prefix: Option<String>Flamegraph output prefix (produces folded stacks for inferno)
trace_identifier: StringIdentifier for trace filenames (e.g., “rcp-master”, “rcpd-source”, “rcpd-destination”)
profile_level: Option<String>Log level for profiling layers (chrome trace, flamegraph) Defaults to “trace” when profiling is enabled
tokio_console: boolEnable tokio-console for live async debugging
tokio_console_port: Option<u16>Port for tokio-console server (default: 6669)
Trait Implementations§
Source§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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request