diff --git a/CHANGES.md b/CHANGES.md index 31f3ec0..de5c8c0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,9 +1,16 @@ # Changelog -## [v1.3.0](https://github.com/56quarters/cadence/tree/1.3.0) - Unreleased +## [v1.3.0](https://github.com/56quarters/cadence/tree/1.3.0) - 2024-03-23 * Add support for using `u64`, `i32`, and `u32` types as counters per [#201](https://github.com/56quarters/cadence/pull/201). Thanks to @James-Bartman for this contribution. +* Add `MetricSink::stats()` method to the `MetricSink` interface to allow + sinks to expose low-level network telemetry per [#203](https://github.com/56quarters/cadence/pull/203). + Thanks to @mlowicki for this contribution. +* Add `StatsdClient::flush()` method to the client to allow time-sensitive + metrics to be flushed sooner than they otherwise might be per + [#200](https://github.com/56quarters/cadence/pull/200). Thanks to @James-Bartman + for this contribution; ## [v1.2.0](https://github.com/56quarters/cadence/tree/1.2.0) - 2024-02-20 * Add `QueuingMetricSinkBuilder` to allow an error handler to be set for diff --git a/cadence-macros/Cargo.toml b/cadence-macros/Cargo.toml index bce7359..643eca5 100644 --- a/cadence-macros/Cargo.toml +++ b/cadence-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cadence-macros" -version = "1.2.0" +version = "1.3.0" authors = ["Nick Pillitteri"] description = "Macros for Cadence, an extensible Statsd client for Rust" homepage = "https://github.com/56quarters/cadence" @@ -13,7 +13,7 @@ edition = "2021" autobenches = false [dependencies] -cadence = { path = "../cadence", version = "1.2" } +cadence = { path = "../cadence", version = "1.3" } [dev-dependencies] crossbeam-channel = "0.5.1" diff --git a/cadence/Cargo.toml b/cadence/Cargo.toml index b5fb3ff..9d4f9cb 100644 --- a/cadence/Cargo.toml +++ b/cadence/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cadence" -version = "1.2.0" +version = "1.3.0" authors = ["Nick Pillitteri"] description = "An extensible Statsd client for Rust" homepage = "https://github.com/56quarters/cadence" diff --git a/cadence/src/client.rs b/cadence/src/client.rs index 0be696a..6cdc5ac 100644 --- a/cadence/src/client.rs +++ b/cadence/src/client.rs @@ -960,7 +960,7 @@ impl StatsdClient { /// client.count("time-sensitive.keyA", 1); /// client.count("time-sensitive.keyB", 2); /// client.count("time-sensitive.keyC", 3); - /// // Any number of time-sensitive metrics ... // + /// // Any number of time-sensitive metrics ... /// client.flush(); /// ``` pub fn flush(&self) -> MetricResult<()> { diff --git a/cadence/src/sinks/queuing.rs b/cadence/src/sinks/queuing.rs index 499c1ae..a86fae0 100644 --- a/cadence/src/sinks/queuing.rs +++ b/cadence/src/sinks/queuing.rs @@ -709,7 +709,7 @@ mod tests { } let queueing = QueuingMetricSink::with_capacity(BlockingMetricSink, 1); - let results = vec![ + let results = [ queueing.emit("foo.counter:1|c"), queueing.emit("foo.counter:2|c"), queueing.emit("foo.counter:3|c"),