Struct prima_tracing::SubscriberConfig [−][src]
pub struct SubscriberConfig<T> {
pub env: String,
pub telemetry: Option<TelemetryConfig>,
pub service: String,
pub version: Option<String>,
pub json_formatter: T,
}Expand description
SubscriberConfig configuration built via SubscriberConfigBuilder
It contains
- Application env
- Telemetry config
- JSON formatter
Fields
env: Stringtelemetry: Option<TelemetryConfig>service: Stringversion: Option<String>json_formatter: TAuto Trait Implementations
impl<T> RefUnwindSafe for SubscriberConfig<T> where
T: RefUnwindSafe,
impl<T> Send for SubscriberConfig<T> where
T: Send,
impl<T> Sync for SubscriberConfig<T> where
T: Sync,
impl<T> Unpin for SubscriberConfig<T> where
T: Unpin,
impl<T> UnwindSafe for SubscriberConfig<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
