Crate zoomies

Source
Expand description

An Asynchronous Rust Client for interacting with DogStatsD

§Usage

Use a ConfigBuilder to configure an asynchronous Client.

use zoomies::{Client, ConfigBuilder};

#[async_std::main]
async fn main() -> std::io::Result<()> {
  let config = ConfigBuilder::new()
               .from_addr("127.0.0.1:10001".into())
               .to_addr("MY_STATSD_HOST:PORT".into())
               .namespace("chungus".into())
               .finish();

  let client = Client::with_config(config).await?;
  Ok(())
}

Structs§

  • Client handles sending metrics to the DogstatsD server.
  • Rust representation of the DogStatsD Datagram Event.

Enums§

  • The module, zoomies::metrics, implements the following metric types that are accepted by DataDog.

Traits§