Skip to content

Commit

Permalink
Merge pull request #4 from brexhq/rename_pkg
Browse files Browse the repository at this point in the history
Renaming pkg
  • Loading branch information
nikunjy authored May 21, 2020
2 parents aaff8b0 + d2b2e22 commit 0c2f0eb
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 29 deletions.
29 changes: 14 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Fast, buffered, hierarchical stats collection in Go.

## Installation
`go get -u github.com/uber-go/tally`
`go get -u github.com/brexhq/tally`

## Abstract

Expand All @@ -17,10 +17,9 @@ By default it buffers counters, gauges and histograms at a specified interval bu
- Metrics: Counters, Gauges, Timers and Histograms.
- Reporter: Implemented by you. Accepts aggregated values from the scope. Forwards the aggregated values to your metrics ingestion pipeline.
- The reporters already available listed alphabetically are:
- `github.com/uber-go/tally/m3`: Report m3 metrics, timers are not sampled and forwarded directly.
- `github.com/uber-go/tally/multi`: Report to multiple reporters, you can multi-write metrics to other reporters simply.
- `github.com/uber-go/tally/prometheus`: Report prometheus metrics, timers by default are made summaries with an option to make them histograms instead.
- `github.com/uber-go/tally/statsd`: Report statsd metrics, no support for tags.
- `github.com/brexhq/tally/multi`: Report to multiple reporters, you can multi-write metrics to other reporters simply.
- `github.com/brexhq/tally/prometheus`: Report prometheus metrics, timers by default are made summaries with an option to make them histograms instead.
- `github.com/brexhq/tally/statsd`: Report statsd metrics, no support for tags.

### Basics

Expand Down Expand Up @@ -59,8 +58,8 @@ Use the inbuilt statsd reporter:
import (
"io"
"github.com/cactus/go-statsd-client/statsd"
"github.com/uber-go/tally"
tallystatsd "github.com/uber-go/tally/statsd"
"github.com/brexhq/tally"
tallystatsd "github.com/brexhq/tally/statsd"
// ...
)

Expand Down Expand Up @@ -202,11 +201,11 @@ BenchmarkTimerReport-8 300000000 5.69 ns/op

Released under the [MIT License](LICENSE).

[doc-img]: https://godoc.org/github.com/uber-go/tally?status.svg
[doc]: https://godoc.org/github.com/uber-go/tally
[ci-img]: https://travis-ci.org/uber-go/tally.svg?branch=master
[ci]: https://travis-ci.org/uber-go/tally
[cov-img]: https://coveralls.io/repos/github/uber-go/tally/badge.svg?branch=master
[cov]: https://coveralls.io/github/uber-go/tally?branch=master
[glide.lock]: https://github.com/uber-go/tally/blob/master/glide.lock
[v1]: https://github.com/uber-go/tally/milestones
[doc-img]: https://godoc.org/github.com/brexhq/tally?status.svg
[doc]: https://godoc.org/github.com/brexhq/tally
[ci-img]: https://travis-ci.org/brexhq/tally.svg?branch=master
[ci]: https://travis-ci.org/brexhq/tally
[cov-img]: https://coveralls.io/repos/github/brexhq/tally/badge.svg?branch=master
[cov]: https://coveralls.io/github/brexhq/tally?branch=master
[glide.lock]: https://github.com/brexhq/tally/blob/master/glide.lock
[v1]: https://github.com/brexhq/tally/milestones
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"
"time"

"github.com/uber-go/tally"
"github.com/brexhq/tally"
)

type printStatsReporter struct{}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/uber-go/tally
module github.com/brexhq/tally

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion instrument/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

package instrument

import "github.com/uber-go/tally"
import "github.com/brexhq/tally"

const (
resultType = "result_type"
Expand Down
2 changes: 1 addition & 1 deletion instrument/call_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"
"time"

"github.com/uber-go/tally"
"github.com/brexhq/tally"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion multi/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package multi
import (
"time"

"github.com/uber-go/tally"
"github.com/brexhq/tally"
)

type multi struct {
Expand Down
2 changes: 1 addition & 1 deletion multi/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

"github.com/uber-go/tally"
"github.com/brexhq/tally"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions prometheus/example/prometheus_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"net/http"
"time"

"github.com/uber-go/tally"
promreporter "github.com/uber-go/tally/prometheus"
"github.com/brexhq/tally"
promreporter "github.com/brexhq/tally/prometheus"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion prometheus/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (

prom "github.com/prometheus/client_golang/prometheus"

"github.com/brexhq/tally"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/uber-go/tally"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion prometheus/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"testing"
"time"

"github.com/brexhq/tally"
prom "github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
"github.com/uber-go/tally"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion prometheus/sanitize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package prometheus

import (
"github.com/uber-go/tally"
"github.com/brexhq/tally"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions statsd/example/statsd_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"math/rand"
"time"

"github.com/uber-go/tally"
statsdreporter "github.com/uber-go/tally/statsd"
"github.com/brexhq/tally"
statsdreporter "github.com/brexhq/tally/statsd"

"github.com/cactus/go-statsd-client/statsd"
)
Expand Down
2 changes: 1 addition & 1 deletion statsd/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"strconv"
"time"

"github.com/uber-go/tally"
"github.com/brexhq/tally"

"github.com/cactus/go-statsd-client/statsd"
)
Expand Down

0 comments on commit 0c2f0eb

Please sign in to comment.