Skip to content

Releases: lyft/gostats

Fix race conditions

17 Jan 21:03
afd370d
Compare
Choose a tag to compare

v0.2.17

Improve performance and reduce allocs

11 Jan 22:51
bade9ed
Compare
Choose a tag to compare
  • Improve the performance of New* methods and tcpStatsdSink #50
  • Scope: remove fmt.Sprintf() string concatenation and improve tag merge #61

Benchmark Results (7054f86..bade9ed benchmarks backported to 7054f86):

benchmark                               old ns/op     new ns/op     delta
BenchmarkStore_MutexContention-8        251           112           -55.38%
BenchmarkStore_NewCounterWithTags-8     2710          489           -81.96%
BenchmarkStore_ScopeWithTags-8          6041          1389          -77.01%
BenchmarkStore_ScopeNoTags-8            3347          556           -83.39%
BenchmarkSerializeTags-8                2513          456           -81.85%

benchmark                               old allocs     new allocs     delta
BenchmarkStore_MutexContention-8        2              0              -100.00%
BenchmarkStore_NewCounterWithTags-8     32             3              -90.62%
BenchmarkStore_ScopeWithTags-8          61             4              -93.44%
BenchmarkStore_ScopeNoTags-8            37             4              -89.19%
BenchmarkSerializeTags-8                30             3              -90.00%

benchmark                               old bytes     new bytes     delta
BenchmarkStore_MutexContention-8        22            2             -90.91%
BenchmarkStore_NewCounterWithTags-8     800           272           -66.00%
BenchmarkStore_ScopeWithTags-8          1648          544           -66.99%
BenchmarkStore_ScopeNoTags-8            1200          304           -74.67%
BenchmarkSerializeTags-8                768           272           -64.58%

scopes: fix bug with tag inheritance.

02 Oct 03:53
7054f86
Compare
Choose a tag to compare
  • scopes: fix bug with tag inheritance. (#45)

Replace Periods in Tag Values

11 Sep 18:59
acc84a6
Compare
Choose a tag to compare

This release replaces periods in tag values with underscores to mimic python-lyft-stats behavior and to prevent malformed metric names / tags. wavefrontproxy expects there to be no periods in the tag value.

Tag improvements

15 Aug 23:32
4b10ad9
Compare
Choose a tag to compare

This release adds validation to tag values to defend unsanitized input from creating malformed statsd output, and defines a new ScopeWithTags() method to add default tags to a scope that are inherited that scope's child scopes and metrics.

Commits:

Store.Flush() blocks until actual flush

08 Aug 02:58
f60c0ca
Compare
Choose a tag to compare

Fix TCP Sink Ticker

19 Jul 20:57
@btc btc
Compare
Choose a tag to compare
ticker (#37)

Signed-off-by: James Sedgwick <[email protected]>

Increase tcp stats sink perf

13 Jul 00:05
bb587bd
Compare
Choose a tag to compare
Improve statsd sink performance (#32)

* initial

Signed-off-by: James Sedgwick <[email protected]>

* fix

Signed-off-by: James Sedgwick <[email protected]>

* lint

Signed-off-by: James Sedgwick <[email protected]>

* use buffer pool

Signed-off-by: James Sedgwick <[email protected]>

* check

Signed-off-by: James Sedgwick <[email protected]>

* update travis config

* sync.Pool([]byte) -> (*bytes.Buffer), etc (#33)

Add counter names to log messages.

18 Apr 17:41
942830d
Compare
Choose a tag to compare
  • tcp_sink: add counter names to log messages @diegs (#30)

Timespan returns time.Duration on Complete()

20 Mar 19:08
@btc btc
35093b5
Compare
Choose a tag to compare
return the duration of the span (#28)

* return the duration of the span

* fix the interface