JustEat.StatsD 4.0.0
JustEat.StatsD v4.0.0
Available from NuGet.
JustEat.StatsD 4.0.0 is a major release. It is simpler than version 3.x, and the high-performance additions in the 3.x releases are now the default. Version 4.0.0 makes various binary breaking changes to the library to reduce the size of the IStatsDPublisher interface and remove various deprecated classes and members from its public API.
It also makes a number of source-breaking changes to rename or remove some members. See below for details of changes and suggested changes for upgrading.
Changes
- The
UdpTransport,IpTransportandPooledUdpTransportclasses have been removed. The newSocketTransportclass now contains the pooling implementation and supports both UDP and IP transports. (#114, #115, #116) - For the case where IP transport is needed, including in AWS lambda functions, setup is now simpler. Set
config.SocketProtocol = SocketProtocol.IPas per this example. StatsDPublishernow implementsIDisposableand issealed. (#125)- Buffered transport is now used by default. (#117)
- Add
netcoreapp2.2target framework. (#150) - Various pieces of internal refactoring to improve efficiency and performance.
- Various internal reliability fixes identified through the use of static code analysers. (#126)
- The assembly is now strong-named. (#147)
- The assembly version is now frozen to
4.0.0.0for each release of4.x. (#147) - Renamed
EndpointParsertoEndPointFactory. (#157) - Renamed
IPEndPointSourcetoIEndpointSource. (#136) - Removed
IStatsDBufferedTransport. (#118) - Removed the
PoolAwareSocketAsyncEventArgsclass. (#107) - Removed the
SimpleObjectPool<T>class. (#109) - The
PreferBufferedTransportproperty has been removed from theStatsDConfigurationclass. (#117) - Added integration tests using StatsD.
Upgrading from version 3.x.x of JustEat.StatsD
- Remove usage of
PreferBufferedTransport- it is now enabled by default and cannot be disabled. - Change any usage of
IpTransporttoSocketTransportwith aSocketProtocolvalue ofIP. - Change any usage of
PooledUdpTransporttoSocketTransport. - Change any usage of
IStatsDBufferedTransporttoIStatsDTransport. - Change use of
timer.StatNametotimer.Bucketin code.
Fixed
- Removed use of asynchronous call made on a synchronous code path. (#135)
- Added XML documentation to all public members. (#139)
- Removed
runtimeconfig.jsonfrom NuGet package. (#142)