Skip to content

Releases: lyft/gostats

v0.4.4: mock: add ParseTags() and SerializeTags() helper functions

19 Aug 00:42
ba314c9
Compare
Choose a tag to compare

v0.4.4

Example of usage of SerializeTags():

tags := map[string]string{
	"key_1": "val_1",
	"key_2": "val_2",
}
counter := store.NewCounterWithTags("counter", tags)
counter.Add(2)

store.Flush()

n := sink.Counter(mock.SerializeTags("counter", tags))
fmt.Println("counter:", n, n == 2)

v0.4.3: never modify the provided tags map

10 Aug 19:42
00f2fa1
Compare
Choose a tag to compare

v0.4.3

  • #101: tags: change serializeTags to never modify the tags map

mock: add Counters, Gauges and Timers methods to get a map of all stats

18 Jun 02:26
f9add79
Compare
Choose a tag to compare

v0.4.2

  • #90: mock: add Counters, Gauges and Timers methods to get a map of all stats

Improve subscope performance and don't modify tag maps

27 May 21:22
d95cbc0
Compare
Choose a tag to compare

v0.4.1

  • #97: Improves the performance of subscope operations and changes the code to not modify any of the passed in tag maps. Previously, gostats owned any tag map that was passed in, but this could lead to races if the same tag map was used to create two subscopes.

Add support for disabling logging sink when StatsD is disabled

22 Apr 16:32
cf86465
Compare
Choose a tag to compare
  • Users can optionally use a NullSink when StatsD is not enabled, this helps reduce debug log noise when users do not need to explicitly debug stats events (#94)

Add support for UDP sinks

16 Apr 23:05
02891db
Compare
Choose a tag to compare

v0.3.10

  • Add UDP as a sink protocol: #95

Fix bug where Flush() could hang if TCP Sink was reconnecting

01 Apr 04:09
079323d
Compare
Choose a tag to compare

v0.3.9

  • tcp_sink: don't hang on flush if reconnecting: #92

Don't use envconfig to parse settings

08 Feb 06:13
59f0da0
Compare
Choose a tag to compare

v0.3.8

This release removes github.com/kelseyhightower/envconfig and fixes a bug in the last v0.3.8 release that resulted in Settings.UseStatsd defaulting to false (it should default to true).

  • settings: set DefaultUseStatsd to true: #89
  • settings: remove envconfig: #88

Hat tip to @chenleiwhu for discovering this bug.

Fix null sink implementation

25 Nov 22:13
118d7f8
Compare
Choose a tag to compare
v0.3.6

Update null_sink.go (#87)

Make nullSink a FlushableSink

25 Nov 21:41
04324ae
Compare
Choose a tag to compare
v0.3.5

Make nullSink a FlushableSink (#86)