From f265e42c4c0f748a4d34f66ce80bf621d34bacdb Mon Sep 17 00:00:00 2001 From: Stephen Wakely Date: Mon, 27 Apr 2026 12:13:33 +0100 Subject: [PATCH 1/3] Release version 9.1.0 --- CHANGELOG.md | 12 +++++++++++- src/StatsdClient/StatsdClient.csproj | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74fa2bd5..aef6c1fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +# 9.1.0 / 2026-04-27 + +## Changes + +* [FEATURE] Add synchronous mode for serverless environments. Set `StatsdConfig.SynchronousMode = true` to bypass the async background worker and send metrics directly on the calling thread, eliminating metric loss on sandbox freeze in AWS Lambda and similar runtimes. See [#227][]. + # 9.0.0 / 2025-08-18 ## Breaking Changes @@ -285,6 +291,10 @@ DogStatsD-CSharp-Client `2.2.1` is the last version to support .NET Framework 3. [#186]: https://github.com/DataDog/dogstatsd-csharp-client/issues/186 [#187]: https://github.com/DataDog/dogstatsd-csharp-client/issues/187 [#188]: https://github.com/DataDog/dogstatsd-csharp-client/issues/188 +[#209]: https://github.com/DataDog/dogstatsd-csharp-client/issues/209 +[#211]: https://github.com/DataDog/dogstatsd-csharp-client/issues/211 +[#213]: https://github.com/DataDog/dogstatsd-csharp-client/issues/213 +[#227]: https://github.com/DataDog/dogstatsd-csharp-client/issues/227 [@DanielVukelich]: https://github.com/DanielVukelich [@albertofem]: https://github.com/albertofem [@alistair]: https://github.com/alistair @@ -306,4 +316,4 @@ DogStatsD-CSharp-Client `2.2.1` is the last version to support .NET Framework 3. [@sqdk]: https://github.com/sqdk [@windsnow98]: https://github.com/windsnow98 [@wjdavis5]: https://github.com/wjdavis5 -[@yori-s]: https://github.com/yori-s +[@yori-s]: https://github.com/yori-s \ No newline at end of file diff --git a/src/StatsdClient/StatsdClient.csproj b/src/StatsdClient/StatsdClient.csproj index c013ff1a..f58bd4a9 100644 --- a/src/StatsdClient/StatsdClient.csproj +++ b/src/StatsdClient/StatsdClient.csproj @@ -4,7 +4,8 @@ DogStatsD-CSharp-Client net461;netstandard2.0;netcoreapp3.1;net6.0 latest - 9.0.0 + 9.1.0 + 9.1.0 true StatsdClient.snk ../../stylecop.ruleset From 369fc236ac14408832b3cc2f650c9eced9015faf Mon Sep 17 00:00:00 2001 From: Stephen Wakely Date: Mon, 27 Apr 2026 12:18:42 +0100 Subject: [PATCH 2/3] Fix: keep assembly Version at 9.0.0 for minor release --- src/StatsdClient/StatsdClient.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StatsdClient/StatsdClient.csproj b/src/StatsdClient/StatsdClient.csproj index f58bd4a9..a9e9d29a 100644 --- a/src/StatsdClient/StatsdClient.csproj +++ b/src/StatsdClient/StatsdClient.csproj @@ -5,7 +5,7 @@ net461;netstandard2.0;netcoreapp3.1;net6.0 latest 9.1.0 - 9.1.0 + 9.0.0 true StatsdClient.snk ../../stylecop.ruleset From 9de69f49f2dd5150aee877049c0c4de224e205cc Mon Sep 17 00:00:00 2001 From: Stephen Wakely Date: Mon, 27 Apr 2026 12:21:56 +0100 Subject: [PATCH 3/3] Clarify SynchronousMode changelog: Flush() required to drain buffer --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aef6c1fa..61af1716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ CHANGELOG ## Changes -* [FEATURE] Add synchronous mode for serverless environments. Set `StatsdConfig.SynchronousMode = true` to bypass the async background worker and send metrics directly on the calling thread, eliminating metric loss on sandbox freeze in AWS Lambda and similar runtimes. See [#227][]. +* [FEATURE] Add synchronous mode for serverless environments. Set `StatsdConfig.SynchronousMode = true` to bypass the async background worker and route metrics on the calling thread. Call `Flush()` at the end of each handler invocation to send any remaining buffered metrics before the sandbox freezes. See [#227][]. # 9.0.0 / 2025-08-18