pub struct TracingConfig<F> {
pub service_name: &'static str,
pub stderr_log: StderrLogConfig,
pub opentelemetry: Option<OpenTelemetryConfig>,
pub tokio_console: Option<TokioConsoleConfig>,
pub capture: Option<SharedStorage>,
pub sentry: Option<SentryConfig<F>>,
pub build_version: &'static str,
pub build_sha: &'static str,
pub build_time: &'static str,
pub registry: MetricsRegistry,
}
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.
capture: Option<SharedStorage>
Optional configuration for capturing spans during tests.
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.
registry: MetricsRegistry
Registry for prometheus metrics.
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for TracingConfig<F>
impl<F> !RefUnwindSafe for TracingConfig<F>
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>
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> 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>
Wrap the input message
T
in a tonic::Request