pub struct DataDogBuilder { /* private fields */ }
Expand description
Builder for creating/installing a DataDog recorder/exporter
Implementations§
Source§impl DataDogBuilder
impl DataDogBuilder
Sourcepub fn default() -> Self
pub fn default() -> Self
Creates a new DataDogBuilder
Sourcepub fn write_to_stdout(self, b: bool) -> DataDogBuilder
pub fn write_to_stdout(self, b: bool) -> DataDogBuilder
Write metrics to stdout in DataDog JSON format
Sourcepub fn write_to_api(self, b: bool, api_key: Option<String>) -> DataDogBuilder
pub fn write_to_api(self, b: bool, api_key: Option<String>) -> DataDogBuilder
Write metrics to DataDog API
Sourcepub fn api_host(self, api_host: String) -> DataDogBuilder
pub fn api_host(self, api_host: String) -> DataDogBuilder
Set DataDog API host
Set tags to send with metrics
Sourcepub fn client_timeout(self, timeout: Duration) -> DataDogBuilder
pub fn client_timeout(self, timeout: Duration) -> DataDogBuilder
Set client timeout
Sourcepub fn gzip(self, gzip: bool) -> DataDogBuilder
pub fn gzip(self, gzip: bool) -> DataDogBuilder
Set compression
Sourcepub fn build(self) -> Result<DataDogHandle, Error>
pub fn build(self) -> Result<DataDogHandle, Error>
Build DataDogHandle
Auto Trait Implementations§
impl Freeze for DataDogBuilder
impl RefUnwindSafe for DataDogBuilder
impl Send for DataDogBuilder
impl Sync for DataDogBuilder
impl Unpin for DataDogBuilder
impl UnwindSafe for DataDogBuilder
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more