markstory / rust-statsd

Statsd client implemented in Rust
MIT License
58 stars 26 forks source link

Add pipeline support #4

Closed messense closed 8 years ago

markstory commented 8 years ago

Looking good!

markstory commented 8 years ago

Thanks! Tagged and packaged into 0.5.0

messense commented 8 years ago

I think maybe we could make the pipeline API more like redis-rs:

extern crate statsd;

use statsd::Client;

let client = Client::new("127.0.0.1:8125", "myapp").unwrap();

let mut pipe = statsd::pipeline();
pipe.incr("some.counter");
pipe.decr("some.counter");
pipe.send(&client);
markstory commented 8 years ago

@messense That sounds like a simpler API :+1:. Did you want to do that change or should I do it?

messense commented 8 years ago

@markstory I don't have much time now. You should do it. :-)

markstory commented 8 years ago

@messense Ok.