1.7 KiB
Executable File
Change Log
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
[2.0.0] - 2016-03-20
-
Newsignature changed. The default address used is now ":8125". To use another address use theAddressoption:Before:
statsd.New(":8125") statsd.New(":9000")After
statsd.New() statsd.New(statsd.Address(":9000")) -
The
rateparameter has been removed from theCountandTimingmethods. Use the newSampleRateoption instead. -
Count,GaugeandTimingnow accept ainterface{}instead of an int as the value parameter. So you can now use any type of integer or float in these functions. -
The
WithInfluxDBTagsandWithDatadogTagsoptions were replaced by theTagsFormatandTagsoptions:Before:
statsd.New(statsd.WithInfluxDBTags("tag", "value")) statsd.New(statsd.WithDatadogTags("tag", "value"))After
statsd.New(statsd.TagsFormat(statsd.InfluxDB), statsd.Tags("tag", "value")) statsd.New(statsd.TagsFormat(statsd.Datadog), statsd.Tags("tag", "value")) -
All options whose named began by
Withhad theWithstripped:Before:
statsd.New(statsd.WithMaxPacketSize(65000))After
statsd.New(statsd.MaxPacketSize(65000)) -
ChangeGaugehas been removed as it is a bad practice: UDP packets can be lost so using relative changes can cause unreliable values in the long term. UseGaugeinstead which sends an absolute value. -
The
Histogrammethod has been added. -
The
Clonemethod was added to theClient, it allows to create a newClientwith different rate / prefix / tags parameters while still using the same connection.