Struct datadog_logs::config::DataDogConfig[][src]

pub struct DataDogConfig {
    pub tags: Option<String>,
    pub apikey: String,
    pub service: Option<String>,
    pub hostname: Option<String>,
    pub source: String,
    pub http_config: DataDogHttpConfig,
    pub tcp_config: DataDogTcpConfig,
    pub messages_channel_capacity: Option<usize>,
    pub enable_self_log: bool,
}

Configuration for DataDogLogger

Fields

tags: Option<String>

Tags to add to each log.

apikey: String

DataDog API key. It is required to specify API key. Not doing it is considered an error.

service: Option<String>

Service name to add to each log.

hostname: Option<String>

Hostname to add to each log.

source: String

Source to add to each log. Default value is rust.

http_config: DataDogHttpConfig

HTTP client specific configuration. It only needs to be specified for HTTP logging in case of non-default settings. Otherwise default is assumed.

tcp_config: DataDogTcpConfig

TCP client specific configuration It only needs to be specified for TCP logging in case of non-default settings. Otherwise default is assumed.

Even though the crate does not support TCP client now, config is here to be an extensibility point.

messages_channel_capacity: Option<usize>

Capacity of channel connecting logger thread with other threads. If not set explicitly, it defaults to 10 000 messages. If explicitly set to None, channel will be unbounded.

enable_self_log: bool

Enables or disables self logging. Disabled by default.

Trait Implementations

impl Clone for DataDogConfig[src]

impl Debug for DataDogConfig[src]

impl Default for DataDogConfig[src]

impl<'de> Deserialize<'de> for DataDogConfig[src]

impl Serialize for DataDogConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.