Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"

tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

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/v4
module github.com/uber-go/tally/v7

go 1.20

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

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

const (
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/v4"
"github.com/uber-go/tally/v7"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions internal/cache/tag_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ package cache
import (
"sync"

"github.com/uber-go/tally/v4/internal/identity"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v2"
"github.com/uber-go/tally/v7/internal/identity"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v2"
)

// TagCache is an identity.Accumulator-based tag cache.
Expand Down
2 changes: 1 addition & 1 deletion internal/identity/accumulator_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"
"testing"

"github.com/uber-go/tally/v4/internal/identity"
"github.com/uber-go/tally/v7/internal/identity"
)

func BenchmarkAccumulator_StringStringMap(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion m3/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/uber-go/tally/v4/m3/thriftudp"
"github.com/uber-go/tally/v7/m3/thriftudp"
)

func TestConfigSimple(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion m3/customtransports/buffered_read_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package customtransport
import (
"bytes"

"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

// TBufferedReadTransport is a thrift.TTransport that reads from a buffer
Expand Down
2 changes: 1 addition & 1 deletion m3/customtransports/m3_calc_transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"

"github.com/stretchr/testify/require"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

// Make sure that TCalcTransport implements TRichTransport.
Expand Down
8 changes: 4 additions & 4 deletions m3/example/local_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (
"net"
"sync/atomic"

"github.com/uber-go/tally/v4/m3"
customtransport "github.com/uber-go/tally/v4/m3/customtransports"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v1"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/m3"
customtransport "github.com/uber-go/tally/v7/m3/customtransports"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v1"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

type batchCallback func(batch *m3thrift.MetricBatch)
Expand Down
6 changes: 3 additions & 3 deletions m3/example/m3_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (
"os"
"time"

tally "github.com/uber-go/tally/v4"
"github.com/uber-go/tally/v4/m3"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v1"
tally "github.com/uber-go/tally/v7"
"github.com/uber-go/tally/v7/m3"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v1"

validator "gopkg.in/validator.v2"
yaml "gopkg.in/yaml.v2"
Expand Down
12 changes: 6 additions & 6 deletions m3/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ import (
"time"

"github.com/pkg/errors"
tally "github.com/uber-go/tally/v4"
"github.com/uber-go/tally/v4/internal/cache"
customtransport "github.com/uber-go/tally/v4/m3/customtransports"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v2"
"github.com/uber-go/tally/v4/m3/thriftudp"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
tally "github.com/uber-go/tally/v7"
"github.com/uber-go/tally/v7/internal/cache"
customtransport "github.com/uber-go/tally/v7/m3/customtransports"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v2"
"github.com/uber-go/tally/v7/m3/thriftudp"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
"go.uber.org/atomic"
)

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

tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

func BenchmarkNewMetric(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions m3/reporter_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ package main
import (
"time"

tally "github.com/uber-go/tally/v4"
"github.com/uber-go/tally/v4/m3"
tally "github.com/uber-go/tally/v7"
"github.com/uber-go/tally/v7/m3"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions m3/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ import (
"testing"
"time"

tally "github.com/uber-go/tally/v4"
customtransport "github.com/uber-go/tally/v4/m3/customtransports"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v2"
"github.com/uber-go/tally/v4/m3/thriftudp"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
tally "github.com/uber-go/tally/v7"
customtransport "github.com/uber-go/tally/v7/m3/customtransports"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v2"
"github.com/uber-go/tally/v7/m3/thriftudp"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
8 changes: 4 additions & 4 deletions m3/resource_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
package m3

import (
tally "github.com/uber-go/tally/v4"
customtransport "github.com/uber-go/tally/v4/m3/customtransports"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v2"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
tally "github.com/uber-go/tally/v7"
customtransport "github.com/uber-go/tally/v7/m3/customtransports"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v2"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions m3/resource_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"testing"

"github.com/stretchr/testify/require"
m3thrift "github.com/uber-go/tally/v4/m3/thrift/v2"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
m3thrift "github.com/uber-go/tally/v7/m3/thrift/v2"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

func TestM3ResourcePoolMetric(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion m3/sanitize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package m3

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

// DefaultSanitizerOpts are the options for the default M3 sanitizer.
Expand Down
2 changes: 1 addition & 1 deletion m3/scope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"time"

"github.com/stretchr/testify/require"
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

var commonTags = map[string]string{"env": "test"}
Expand Down
4 changes: 2 additions & 2 deletions m3/thrift/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gen-thrift:
@thrift --gen go:thrift_import="github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift" -out . v1/v1.thrift && rm -rf v1/m3-remote
@thrift --gen go:thrift_import="github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift" -out . v1/v1.thrift && rm -rf v1/m3-remote
@echo Generated v1 Go Thrift in metrics/m3/thrift/v1.
@thrift --gen go:thrift_import="github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift" -out . v2/v2.thrift && rm -rf v2/m3-remote
@thrift --gen go:thrift_import="github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift" -out . v2/v2.thrift && rm -rf v2/m3-remote
@echo Generated v2 Go Thrift in metrics/m3/thrift/v2.
@git apply thrift.diff
@echo Applied thrift.diff.
2 changes: 1 addition & 1 deletion m3/thrift/v1/constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thrift/v1/m3.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thrift/v1/ttypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thrift/v2/constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thrift/v2/m3.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thrift/v2/ttypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion m3/thriftudp/multitransport.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package thriftudp
import (
"fmt"

"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

// TMultiUDPTransport does multiUDP as a thrift.TTransport
Expand Down
2 changes: 1 addition & 1 deletion m3/thriftudp/multitransport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
)

func TestNewTMultiUDPClientTransport(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion m3/thriftudp/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"context"
"net"

"github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift"
"github.com/uber-go/tally/v7/thirdparty/github.com/apache/thrift/lib/go/thrift"
"go.uber.org/atomic"
)

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"

tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

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 @@ -26,7 +26,7 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

func TestMultiReporter(t *testing.T) {
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"

tally "github.com/uber-go/tally/v4"
promreporter "github.com/uber-go/tally/v4/prometheus"
tally "github.com/uber-go/tally/v7"
promreporter "github.com/uber-go/tally/v7/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 @@ -29,7 +29,7 @@ import (
"github.com/pkg/errors"
prom "github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

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 @@ -29,7 +29,7 @@ import (
dto "github.com/prometheus/client_model/go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

// NB(r): If a test is failing, you can debug what is being
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 (
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

// DefaultSanitizerOpts are the options for the default Prometheus sanitizer.
Expand Down
4 changes: 2 additions & 2 deletions scope_registry_external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/uber-go/tally/v4"
"github.com/uber-go/tally/v4/tallymock"
"github.com/uber-go/tally/v7"
"github.com/uber-go/tally/v7/tallymock"
"go.uber.org/atomic"
)

Expand Down
2 changes: 1 addition & 1 deletion stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"sync/atomic"
"time"

"github.com/uber-go/tally/v4/internal/identity"
"github.com/uber-go/tally/v7/internal/identity"
)

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 @@ -26,8 +26,8 @@ import (
"time"

"github.com/cactus/go-statsd-client/v5/statsd"
tally "github.com/uber-go/tally/v4"
statsdreporter "github.com/uber-go/tally/v4/statsd"
tally "github.com/uber-go/tally/v7"
statsdreporter "github.com/uber-go/tally/v7/statsd"
)

// To view statsd emitted metrics locally you can use
Expand Down
2 changes: 1 addition & 1 deletion statsd/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"time"

"github.com/cactus/go-statsd-client/v5/statsd"
tally "github.com/uber-go/tally/v4"
tally "github.com/uber-go/tally/v7"
)

const (
Expand Down
Loading
Loading