Skip to content

JustEat.StatsD 4.0.0

Compare
Choose a tag to compare
@martincostello martincostello released this 21 Jan 12:14
· 345 commits to master since this release
b100bdd

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 and PooledUdpTransport classes have been removed. The new SocketTransport 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 implements IDisposable and is sealed. (#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 of 4.x. (#147)
  • Renamed EndpointParser to EndPointFactory. (#157)
  • Renamed IPEndPointSource to IEndpointSource. (#136)
  • Removed IStatsDBufferedTransport. (#118)
  • Removed the PoolAwareSocketAsyncEventArgs class. (#107)
  • Removed the SimpleObjectPool<T> class. (#109)
  • The PreferBufferedTransport property has been removed from the StatsDConfiguration 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 to SocketTransport with a SocketProtocol value of IP.
  • Change any usage of PooledUdpTransport to SocketTransport.
  • Change any usage of IStatsDBufferedTransport to IStatsDTransport.
  • Change use of timer.StatName to timer.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)

Contributors