Releases: lyft/gostats
Releases · lyft/gostats
v0.4.4: mock: add ParseTags() and SerializeTags() helper functions
v0.4.4
- #103: tags: move tags logic to internal pkg and add
ParseTags()
andSerializeTags()
helpers
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
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
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
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
- 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
v0.3.10
- Add UDP as a sink protocol: #95
Fix bug where Flush() could hang if TCP Sink was reconnecting
v0.3.9
- tcp_sink: don't hang on flush if reconnecting: #92
Don't use envconfig to parse settings
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).
Hat tip to @chenleiwhu for discovering this bug.
Fix null sink implementation
v0.3.6 Update null_sink.go (#87)
Make nullSink a FlushableSink
v0.3.5 Make nullSink a FlushableSink (#86)