pub struct Config {
pub service: String,
pub env: Option<String>,
pub host: String,
pub port: String,
pub logging_config: Option<LoggingConfig>,
pub apm_config: ApmConfig,
pub enable_tracing: bool,
pub num_client_send_threads: u32,
}Expand description
Configuration settings for the client.
Fields§
§service: StringDatadog apm service name
env: Option<String>Datadog apm environment
host: StringDatadog agent host/ip, defaults to localhost.
port: StringDatadog agent port, defaults to 8126.
logging_config: Option<LoggingConfig>Optional Logging Config to also set this tracer as the main logger
apm_config: ApmConfigAPM Config to set up APM Analytics (default is to disable)
enable_tracing: boolTurn on tracing
num_client_send_threads: u32Number of threads to send the HTTP messages to the Datadog agent
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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