pub struct TracingOptions {Show 16 fields
pub enable_io_logs: Option<bool>,
pub io_log_level: Option<String>,
pub enable_file_logs: Option<bool>,
pub file_log_level: Option<String>,
pub file_log_rotation: Option<String>,
pub file_log_max_rolling_files: Option<u32>,
pub enable_syslog_logs: Option<bool>,
pub syslog_addr: Option<String>,
pub syslog_log_level: Option<String>,
pub enable_ecs_logs: Option<bool>,
pub ecs_log_level: Option<String>,
pub ecs_rotation: Option<String>,
pub ecs_max_rolling_files: Option<u32>,
pub otel_grpc_endpoint: Option<String>,
pub otel_http_endpoint: Option<String>,
pub otel_log_level: Option<String>,
}Expand description
Tracing options.
Fields§
§enable_io_logs: Option<bool>Enable I/O logs.
io_log_level: Option<String>Log level; for no logging delete the line in YAML completely.
enable_file_logs: Option<bool>Enable file logs.
file_log_level: Option<String>File’s log level. Defaults to log_level.
file_log_rotation: Option<String>File rolling rotation, if you have a ton of logs and need to split them.
file_log_max_rolling_files: Option<u32>Files limitation for autoremove.
enable_syslog_logs: Option<bool>Enable RFC 5424 logging.
syslog_addr: Option<String>Address to send logs via TCP/UDP or into UNIX sockets.
syslog_log_level: Option<String>Syslog’s log level. Defaults to log_level.
enable_ecs_logs: Option<bool>Enable Elastic Common Schema structured logging.
ecs_log_level: Option<String>ECS log level. Defaults to log_level.
ecs_rotation: Option<String>ECS rolling rotation, if you have a ton of ECS logs and need to split them.
ecs_max_rolling_files: Option<u32>ECS files limitation for autoremove.
otel_grpc_endpoint: Option<String>Endpoint to export OpenTelemetry via gRPC (e.g., Jaeger).
otel_http_endpoint: Option<String>Endpoint to export OpenTelemetry via HTTP binary protocol (e.g., Prometheus).
otel_log_level: Option<String>OpenTelemetry log level. Defaults to log_level.
Implementations§
Source§impl TracingOptions
impl TracingOptions
Sourcepub fn init(&self, app_name: &str) -> MResult<TracingGuards>
pub fn init(&self, app_name: &str) -> MResult<TracingGuards>
Inits logging application-wide.
Trait Implementations§
Source§impl Clone for TracingOptions
impl Clone for TracingOptions
Source§fn clone(&self) -> TracingOptions
fn clone(&self) -> TracingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for TracingOptions
impl Default for TracingOptions
Source§fn default() -> TracingOptions
fn default() -> TracingOptions
Source§impl<'de> Deserialize<'de> for TracingOptions
impl<'de> Deserialize<'de> for TracingOptions
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>,
Auto Trait Implementations§
impl Freeze for TracingOptions
impl RefUnwindSafe for TracingOptions
impl Send for TracingOptions
impl Sync for TracingOptions
impl Unpin for TracingOptions
impl UnwindSafe for TracingOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request