Skip to content

Commit 2f29329

Browse files
authored
Upgrade tally to v4 (fixes #1157) (#1168)
1 parent da2dc89 commit 2f29329

25 files changed

+88
-32
lines changed

activity/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package activity
2323
import (
2424
"context"
2525

26-
"github.com/uber-go/tally"
26+
"github.com/uber-go/tally/v4"
2727
"go.uber.org/cadence/internal"
2828
"go.uber.org/zap"
2929
)

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ require (
1414
github.com/robfig/cron v1.2.0
1515
github.com/streadway/quantile v0.0.0-20220407130108-4246515d968d // indirect
1616
github.com/stretchr/testify v1.4.0
17-
github.com/uber-go/tally v3.3.15+incompatible
17+
github.com/twmb/murmur3 v1.1.6 // indirect
18+
github.com/uber-go/tally/v4 v4.1.1
1819
github.com/uber/cadence-idl v0.0.0-20220223020740-f2f5b7fc2bbd
1920
github.com/uber/jaeger-client-go v2.22.1+incompatible
2021
github.com/uber/tchannel-go v1.16.0
21-
go.uber.org/atomic v1.7.0
22+
go.uber.org/atomic v1.9.0
2223
go.uber.org/fx v1.13.1 // indirect
2324
go.uber.org/goleak v1.0.0
2425
go.uber.org/multierr v1.6.0

go.sum

Lines changed: 62 additions & 7 deletions
Large diffs are not rendered by default.

internal/activity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"time"
2828

2929
"github.com/opentracing/opentracing-go"
30-
"github.com/uber-go/tally"
30+
"github.com/uber-go/tally/v4"
3131
"go.uber.org/cadence/.gen/go/shared"
3232
"go.uber.org/zap"
3333
"go.uber.org/zap/zapcore"

internal/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"time"
2828

2929
"github.com/opentracing/opentracing-go"
30-
"github.com/uber-go/tally"
30+
"github.com/uber-go/tally/v4"
3131
"go.uber.org/cadence/.gen/go/cadence/workflowserviceclient"
3232
s "go.uber.org/cadence/.gen/go/shared"
3333
"go.uber.org/cadence/internal/common/auth"

internal/common/metrics/capturingStatsReporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"io"
2525
"time"
2626

27-
"github.com/uber-go/tally"
27+
"github.com/uber-go/tally/v4"
2828
)
2929

3030
// NewMetricsScope returns a new metric scope

internal/common/metrics/scope.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"sync"
2525
"time"
2626

27-
"github.com/uber-go/tally"
27+
"github.com/uber-go/tally/v4"
2828
)
2929

3030
type (

internal/common/metrics/scope_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"time"
2828

2929
"github.com/stretchr/testify/require"
30-
"github.com/uber-go/tally"
30+
"github.com/uber-go/tally/v4"
3131
)
3232

3333
func Test_Counter(t *testing.T) {

internal/common/metrics/service_wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"sync"
2626
"time"
2727

28-
"github.com/uber-go/tally"
28+
"github.com/uber-go/tally/v4"
2929
"go.uber.org/cadence/.gen/go/cadence/workflowserviceclient"
3030
"go.uber.org/cadence/.gen/go/shared"
3131
"go.uber.org/yarpc"

internal/common/metrics/service_wrapper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030

3131
"github.com/golang/mock/gomock"
3232
"github.com/stretchr/testify/require"
33-
"github.com/uber-go/tally"
33+
"github.com/uber-go/tally/v4"
3434
"github.com/uber/tchannel-go/thrift"
3535
"go.uber.org/cadence/.gen/go/cadence/workflowserviceclient"
3636
"go.uber.org/cadence/.gen/go/cadence/workflowservicetest"

0 commit comments

Comments
 (0)