Skip to content

Commit a980baa

Browse files
committed
Chore: Upgrade weaveworks/common
Signed-off-by: Arve Knudsen <[email protected]>
1 parent 23aed55 commit a980baa

File tree

13 files changed

+88
-69
lines changed

13 files changed

+88
-69
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ require (
5252
github.com/stretchr/testify v1.7.0
5353
github.com/thanos-io/thanos v0.22.0
5454
github.com/uber/jaeger-client-go v2.29.1+incompatible
55-
github.com/weaveworks/common v0.0.0-20210722103813-e649eff5ab4a
55+
github.com/weaveworks/common v0.0.0-20210901124008-1fa3f9fa874c
5656
go.etcd.io/bbolt v1.3.6
5757
go.uber.org/atomic v1.9.0
5858
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b

go.sum

+2-1
Original file line numberDiff line numberDiff line change
@@ -1765,8 +1765,9 @@ github.com/weaveworks/common v0.0.0-20200914083218-61ffdd448099/go.mod h1:hz10LO
17651765
github.com/weaveworks/common v0.0.0-20201119133501-0619918236ec/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
17661766
github.com/weaveworks/common v0.0.0-20210112142934-23c8d7fa6120/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
17671767
github.com/weaveworks/common v0.0.0-20210419092856-009d1eebd624/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
1768-
github.com/weaveworks/common v0.0.0-20210722103813-e649eff5ab4a h1:ALomSnvy/NPeVoc4a1o7keaHHgLS76r9ZYIlwWWF+KA=
17691768
github.com/weaveworks/common v0.0.0-20210722103813-e649eff5ab4a/go.mod h1:YU9FvnS7kUnRt6HY10G+2qHkwzP3n3Vb1XsXDsJTSp8=
1769+
github.com/weaveworks/common v0.0.0-20210901124008-1fa3f9fa874c h1:+yzwVr4/12cUgsdjbEHq6MsKB7jWBZpZccAP6xvqTzQ=
1770+
github.com/weaveworks/common v0.0.0-20210901124008-1fa3f9fa874c/go.mod h1:YU9FvnS7kUnRt6HY10G+2qHkwzP3n3Vb1XsXDsJTSp8=
17701771
github.com/weaveworks/promrus v1.2.0 h1:jOLf6pe6/vss4qGHjXmGz4oDJQA+AOCqEL3FvvZGz7M=
17711772
github.com/weaveworks/promrus v1.2.0/go.mod h1:SaE82+OJ91yqjrE1rsvBWVzNZKcHYFtMUyS1+Ogs/KA=
17721773
github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=

pkg/chunk/cache/memcached.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ type observableVecCollector struct {
2424
v prometheus.ObserverVec
2525
}
2626

27-
func (observableVecCollector) Register() {}
28-
func (observableVecCollector) Before(method string, start time.Time) {}
29-
func (o observableVecCollector) After(method, statusCode string, start time.Time) {
27+
func (observableVecCollector) Register() {}
28+
func (observableVecCollector) Before(ctx context.Context, method string, start time.Time) {}
29+
func (o observableVecCollector) After(ctx context.Context, method, statusCode string, start time.Time) {
3030
o.v.WithLabelValues(method, statusCode).Observe(time.Since(start).Seconds())
3131
}
3232

pkg/querier/queryrange/instrumentation.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type NoopCollector struct{}
5858
func (c *NoopCollector) Register() {}
5959

6060
// Before implements instrument.Collector.
61-
func (c *NoopCollector) Before(method string, start time.Time) {}
61+
func (c *NoopCollector) Before(ctx context.Context, method string, start time.Time) {}
6262

6363
// After implements instrument.Collector.
64-
func (c *NoopCollector) After(method, statusCode string, start time.Time) {}
64+
func (c *NoopCollector) After(ctx context.Context, method, statusCode string, start time.Time) {}

pkg/util/log/wrappers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"github.com/go-kit/kit/log"
77
kitlog "github.com/go-kit/kit/log"
8-
"github.com/weaveworks/common/middleware"
8+
"github.com/weaveworks/common/tracing"
99

1010
"github.com/cortexproject/cortex/pkg/tenant"
1111
)
@@ -38,7 +38,7 @@ func WithContext(ctx context.Context, l kitlog.Logger) kitlog.Logger {
3838
l = WithUserID(userID, l)
3939
}
4040

41-
traceID, ok := middleware.ExtractTraceID(ctx)
41+
traceID, ok := tracing.ExtractTraceID(ctx)
4242
if !ok {
4343
return l
4444
}

vendor/github.com/weaveworks/common/instrument/instrument.go

+24-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/middleware/grpc_instrumentation.go

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/middleware/http_tracing.go

-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/middleware/instrument.go

+3-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/middleware/logging.go

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/server/server.go

+11-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/weaveworks/common/tracing/tracing.go

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)