From 5961644067eb0d2932593755c76a08febc63e622 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Thu, 28 Nov 2024 11:47:03 +0100 Subject: [PATCH] fix docs --- CHANGELOG.md | 4 +--- src/lib.rs | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d0d99..3c640e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,14 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.9.0] - 2024-11-25 -### Added - -- New `event_with_options!` macro, [see the original repo](https://github.com/mcasper/dogstatsd-rs) for more details ### Changed - Bump `dogstatsd` to 0.12 - Bumped MSRV to 1.74 +- `event!` macro can now accept `EventOptions` as last argument before tags, [see the original repo](https://github.com/mcasper/dogstatsd-rs) for more details --- diff --git a/src/lib.rs b/src/lib.rs index d8886d2..95ad7db 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,8 +57,9 @@ //! service_check!("test", ServiceStatus::OK, ServiceCheckOptions::default()); //! # event!("test", "test event"); //! event!("test", "test event"; "some" => "data"); -//! # event_with_options!("test", "test event", EventOptions::new()); -//! event_with_options!("test", "test event", EventOptions::new(); "some" => "data"); +//! # event!("test", "test event", None); +//! # event!("test", "test event", EventOptions::new()); +//! # event!("test", "test event", EventOptions::new(); "some" => "data"); //! ``` //! //! This is an example of a custom metric, in this case based on an enum type, but it can really be