Closed laullon closed 5 years ago
At a high level let's just retain the package wavefront and split into following files:
package wavefront
reporter.go (reporting logic goes here) registry.go (GetMetric, RegisterMetric etc functions here) delta.go (any delta counter code) util.go (EncodeKey, DecodeKey etc). histogram.go (Wavefront Histogram wrapper that implements https://github.com/rcrowley/go-metrics/blob/3113b8401b8a98917cde58f8bbd42a1b1c03b1fd/histogram.go#L4)
reporter.go
registry.go
delta.go
util.go
histogram.go
At a high level let's just retain the
package wavefront
and split into following files:reporter.go
(reporting logic goes here)registry.go
(GetMetric, RegisterMetric etc functions here)delta.go
(any delta counter code)util.go
(EncodeKey, DecodeKey etc).histogram.go
(Wavefront Histogram wrapper that implements https://github.com/rcrowley/go-metrics/blob/3113b8401b8a98917cde58f8bbd42a1b1c03b1fd/histogram.go#L4)