Struct mz_ore::tracing::TracingConfig
source · pub struct TracingConfig<F> {
pub service_name: &'static str,
pub stderr_log: StderrLogConfig,
pub opentelemetry: Option<OpenTelemetryConfig>,
pub tokio_console: Option<TokioConsoleConfig>,
pub sentry: Option<SentryConfig<F>>,
pub build_version: &'static str,
pub build_sha: &'static str,
pub build_time: &'static str,
}
Available on crate feature
tracing_
only.Expand description
Application tracing configuration.
See the configure
function for details.
Fields§
§service_name: &'static str
The name of the service.
stderr_log: StderrLogConfig
Configuration of the stderr log.
opentelemetry: Option<OpenTelemetryConfig>
Optional configuration of the opentelemetry
library.
tokio_console: Option<TokioConsoleConfig>
Available on crate feature
tokio-console
only.Optional configuration for the Tokio console integration.
sentry: Option<SentryConfig<F>>
Optional Sentry configuration.
build_version: &'static str
The version of this build of the service.
build_sha: &'static str
The commit SHA of this build of the service.
build_time: &'static str
The time of this build of the service.
Trait Implementations§
source§impl<F: Clone> Clone for TracingConfig<F>
impl<F: Clone> Clone for TracingConfig<F>
source§fn clone(&self) -> TracingConfig<F>
fn clone(&self) -> TracingConfig<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<F> RefUnwindSafe for TracingConfig<F>where
F: RefUnwindSafe,
impl<F> Send for TracingConfig<F>where
F: Send,
impl<F> Sync for TracingConfig<F>where
F: Sync,
impl<F> Unpin for TracingConfig<F>where
F: Unpin,
impl<F> UnwindSafe for TracingConfig<F>where
F: UnwindSafe,
Blanket Implementations§
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