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
,IpTransport
andPooledUdpTransport
classes have been removed. The newSocketTransport
class 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.IP
as per this example. StatsDPublisher
now implementsIDisposable
and issealed
. (#125)- Buffered transport is now used by default. (#117)
- Add
netcoreapp2.2
target 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.0
for each release of4.x
. (#147) - Renamed
EndpointParser
toEndPointFactory
. (#157) - Renamed
IPEndPointSource
toIEndpointSource
. (#136) - Removed
IStatsDBufferedTransport
. (#118) - Removed the
PoolAwareSocketAsyncEventArgs
class. (#107) - Removed the
SimpleObjectPool<T>
class. (#109) - The
PreferBufferedTransport
property has been removed from theStatsDConfiguration
class. (#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
IpTransport
toSocketTransport
with aSocketProtocol
value ofIP
. - Change any usage of
PooledUdpTransport
toSocketTransport
. - Change any usage of
IStatsDBufferedTransport
toIStatsDTransport
. - Change use of
timer.StatName
totimer.Bucket
in code.
Fixed
- Removed use of asynchronous call made on a synchronous code path. (#135)
- Added XML documentation to all public members. (#139)
- Removed
runtimeconfig.json
from NuGet package. (#142)