56quarters / cadence

An extensible Statsd client for Rust
https://docs.rs/cadence/
Apache License 2.0
84 stars 27 forks source link

Add cloneable wrapper MetricSink example. #177

Closed 56quarters closed 2 years ago

56quarters commented 2 years ago

Add example of how to retain a reference to a wrapped sink such that its flush method can be periodically called. This exists to document how users to Cadence could call any lifecycle methods on a wrapped sink required.