pub struct Datadog { /* private fields */ }
Expand description

The Datadog struct is the main entry point for the library

Implementations

Initializes a Datadog instance with a struct that implements the Configuration trait. Make sure that you run it only once otherwise you will get an error.

initialize a Datadog instance with bare parameters. This should be used carefully. Use Datadog::init instead

Increment a StatsD counter

Decrement a StatsD counter

Make an arbitrary change to a StatsD counter

Time a block of code (reports in ms)

Send your own timing metric in milliseconds

Report an arbitrary value as a gauge

Report a value in a histogram

Report a value in a distribution

Report a value in a set

Report the status of a service

Send a custom event as a title and a body

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.