Struct datadog_logs::config::DataDogConfig [−][src]
Configuration for DataDogLogger
Fields
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]
fn clone(&self) -> DataDogConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DataDogConfig
[src]
impl Default for DataDogConfig
[src]
impl<'de> Deserialize<'de> for DataDogConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DataDogConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataDogConfig
[src]
impl Send for DataDogConfig
[src]
impl Sync for DataDogConfig
[src]
impl Unpin for DataDogConfig
[src]
impl UnwindSafe for DataDogConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,