Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate weaveworks/common packages used by Mimir #342

Merged
merged 363 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
e9928ad
Exempt 503 (Service Unavailable) from error logging (#97)
juliusv Jun 4, 2018
e01024f
Add gRPC streaming middleware. (#95)
tomwilkie Jun 6, 2018
ee261fb
When trace reporting is enabled, don't enable trace sampling unless a…
leth Jul 17, 2018
afab793
Abstract logging for the middleware (#96)
tomwilkie Jul 19, 2018
b6c150f
Don't shutdown the gRPC server the minute a signal is received. (#99)
tomwilkie Jul 19, 2018
af93c00
Add user and org ID to span if known (#100)
bboreham Jul 19, 2018
d58f15d
Propagate tracing context over httpgrpc (#105)
leth Jul 23, 2018
cf37392
Don't use full URL as metric label on unmatched path (#108)
bboreham Jul 25, 2018
9d89ef2
Raise default server timeouts from 5s to 30s (#109)
bboreham Jul 27, 2018
ef408c8
Return errors when http/grpc servers exit. (#92)
gouthamve Jul 27, 2018
8f75acd
Expose jaeger metrics (#114)
gouthamve Jul 30, 2018
c1317dc
Improve logging of http errors (#115)
bboreham Aug 20, 2018
d516ed3
Update httpgrpc to match weaveworks/cortex#910 (#117)
bboreham Aug 23, 2018
cb92e3e
Expose the HTTP server from the server struct. (#118)
tomwilkie Aug 24, 2018
742cd9f
Add HTTP tracing middleware (#119)
leth Aug 24, 2018
e199adb
Print traceID with request (#123)
gouthamve Aug 31, 2018
303e56c
Also set global logging when initializing logrus (#122)
rndstr Sep 3, 2018
a89a3f3
Don't trace http requests when using httpgrpc. (#124)
tomwilkie Sep 14, 2018
5ead831
Print logrus output in logfmt format (#121)
rndstr Sep 14, 2018
47e82f5
Update more golang/protobuf to gogo/protobuf (#127)
bboreham Sep 19, 2018
ca1cf91
Label http request handler tracing spans with the matched route name …
gouthamve Oct 1, 2018
c4ad22a
Fix dropped namespace in url parsing (#128)
leth Nov 9, 2018
61043e1
Update grpc-opentracing to latest version at new home (#129)
bboreham Nov 9, 2018
14ddecd
go-grpc-middleware has moved (#130)
bboreham Nov 9, 2018
f789056
Update to latest kuberesolver (#131)
gouthamve Nov 20, 2018
b4958f7
Log which ports the server is listening on. (#143)
tomwilkie Dec 5, 2018
eb93014
server: add PathPrefix to config for all routes
adamdecaf Dec 17, 2018
f1a9352
Merge pull request #144 from moov-io/path-prefix
bboreham Jan 2, 2019
302c7b9
Allow server.Config to be unmarshaled from YAML.
tomwilkie Nov 26, 2018
d0f7449
Dont flag context.Canceled as an error in tracing
bboreham Jan 8, 2019
c6534c8
Merge pull request #148 from weaveworks/cancel-not-error
bboreham Jan 9, 2019
e94ffc7
Allow overriding max message sizes and concurrent streams in the server.
tomwilkie Dec 4, 2018
52151cb
Merge pull request #146 from tomwilkie/server-grpc-params
bboreham Jan 10, 2019
056c1a1
exclude Authorization headers from log messages.
woodsaj Feb 1, 2019
207fed7
server: use -server.path-prefix for metrics and debug endpoints
adamdecaf Feb 25, 2019
6a3383c
Skip logging context cancelled warning msgs
Mar 17, 2019
bdd23c5
Merge pull request #151 from nrjpoddar/skipContextCancelledLog
bboreham Apr 3, 2019
8849852
Merge pull request #150 from moov-io/path-prefix-for-metrics
bboreham Apr 3, 2019
7d0095f
Allow log levels to be marshalled to YAML. Test it works.
tomwilkie Apr 7, 2019
6186432
Merge pull request #149 from woodsaj/dontLogAuthHeaders
bboreham Apr 10, 2019
ade3a34
Merge pull request #152 from tomwilkie/yaml-level
bboreham Apr 10, 2019
f89fbda
Fix lint warning
bboreham May 15, 2019
87b95fd
Merge pull request #158 from weaveworks/remove-quay
bboreham May 15, 2019
8a54aa8
Expose RegisterInstrumentation setting
daixiang0 May 15, 2019
5e40063
Update prometheus/client_golang and prometheus/procfs
codesome Jul 12, 2019
8883a61
Merge pull request #161 from codesome/vendor
bboreham Jul 14, 2019
40ead60
Merge pull request #157 from daixiang0/patch-2
bboreham Aug 21, 2019
95bdf7f
Allow user to specify HTTP and gRPC bind addresses (not just ports.)
tomwilkie May 8, 2019
756072a
Change naming from host to address
ThoreKr Sep 27, 2019
997d822
Revert changes to server_test.go
ThoreKr Oct 19, 2019
e389d79
Merge pull request #167 from ThoreKr/server-listen-addr
bboreham Nov 3, 2019
93f10fa
Extend tests to check server works with flag defaults
bboreham Nov 3, 2019
4b42577
limit the number of connections to server
jtlisi Nov 15, 2019
b4d0ce3
Merge pull request #170 from jtlisi/20191115_listener_conn_limits
bboreham Nov 25, 2019
813c815
Merge pull request #169 from weaveworks/improve-tests
bboreham Nov 25, 2019
b09b59e
Tell Go runtime we have stopped listening to signals
bboreham Jan 3, 2020
309bd4a
Merge pull request #171 from weaveworks/stop-signal-notify
bboreham Jan 7, 2020
05383db
Fix kuberesolver URLs to have three slashes
bboreham Jan 15, 2020
297565c
Add more test cases prompted by review feedback
bboreham Jan 16, 2020
dd0fde0
Merge pull request #175 from weaveworks/fix-kuberesolver-url
bboreham Jan 16, 2020
283311c
Trace Websocket requests
bboreham Jan 7, 2020
f0ff3c4
Merge pull request #173 from weaveworks/trace-websockets
bboreham Jan 21, 2020
d7e8634
Update gogo proto to 1.3.0
cyriltovena Jan 30, 2020
289ba90
add flags to configure keep alive configs (#174)
jtlisi Jan 31, 2020
a6b75e3
Fixed gRPC server keepalive flags registration
pracucci Feb 1, 2020
f9309c4
Merge pull request #178 from pracucci/fix-grpc-server-flags
bboreham Feb 1, 2020
884f80f
Merge pull request #177 from cyriltovena/update-gogoproto
bboreham Feb 6, 2020
c033276
Refactor: extract common error decoding
bboreham Feb 18, 2020
a2368a6
Re-do protogen for fake_server with current gRPC
bboreham Feb 18, 2020
8832833
Extend server tests with canceled gRPC functions
bboreham Feb 18, 2020
b1b097d
Extend cancelation checking to include gRPC errors
bboreham Feb 18, 2020
e3d33b3
Extend error instrumentation tests to http
bboreham Feb 18, 2020
752036f
Instrument canceled gRPC calls with a unique label
bboreham Feb 18, 2020
8fe78e3
Merge pull request #180 from weaveworks/better_cancel_handling
bboreham Mar 5, 2020
338df8a
Return error in configuring jaeger
adityacs Feb 24, 2020
4f5616c
Merge pull request #182 from adityacs/master
bboreham Mar 10, 2020
818e3c7
add log format option
seankhliao Apr 1, 2020
8fd9986
Add tls support to http server
annanay25 Apr 8, 2020
2c7b017
Use require package in tests, correct TLS fields in server config
annanay25 Apr 8, 2020
9423b42
Load certs only if config options are specified
annanay25 Apr 9, 2020
0cadfb8
Add metrics namespace to server
annanay25 Apr 9, 2020
60fa679
use same system as level for format
seankhliao Apr 9, 2020
e49e7b4
Add tls support to grpc server, add dummy certs
annanay25 Apr 9, 2020
d87aee0
Addressed @tomwilkie's review comments
annanay25 Apr 15, 2020
d37d646
Fix broken tests
annanay25 Apr 15, 2020
2e9e35e
Add TODO note about using copied function
annanay25 Apr 16, 2020
616c3d1
Use ConfigToTLSConfig util function from node_exporter
annanay25 Apr 20, 2020
d18f518
Log errors when write fails, not 200
gouthamve Apr 20, 2020
6b31090
Address @bboreham's comments
annanay25 Apr 21, 2020
b5217f8
Merge pull request #185 from annanay25/add-tls-support
bboreham Apr 22, 2020
fdf0dd0
fix function documentation
seankhliao Apr 22, 2020
370ed82
Move shebang to first line, add commit hash to link
annanay25 Apr 22, 2020
f8537d0
Merge pull request #188 from annanay25/add-tls-support
rndstr Apr 22, 2020
750c94d
Add test and warn only if not context cancelled
gouthamve Apr 29, 2020
9a579a4
Added option to disable signal handling by Server. (#191)
pstibrany May 11, 2020
3b6f9aa
Merge pull request #187 from gouthamve/fix-error-logging-http
bboreham May 12, 2020
e0b7967
Merge pull request #184 from seankhliao/jsonlog
bboreham Jun 25, 2020
992ec19
Log X-Forwarded-For for every request
MichelHollands Aug 11, 2020
f0b41cf
Address review comments and add Forwarded and X-Real-IP support
MichelHollands Aug 12, 2020
3fc16d7
Remove making standard middleware optional
MichelHollands Aug 13, 2020
f7d00cb
Remove unused fields as well
MichelHollands Aug 13, 2020
2cb30ad
Add option to turn logging of source IPs on
MichelHollands Aug 13, 2020
b0babf8
Add sourceIPs tag in tracing
MichelHollands Aug 13, 2020
a38ef15
Add custom regex for extracting IP from header
MichelHollands Aug 13, 2020
9cd54f5
Rename file so it's clearer what it does
MichelHollands Aug 13, 2020
1c17866
Use better names
MichelHollands Aug 13, 2020
67e2831
Do no use log prefix in config var name
MichelHollands Aug 14, 2020
1e679a2
Address review comments
MichelHollands Aug 14, 2020
51d5a48
Use same way of access struct
MichelHollands Aug 17, 2020
82288ff
Address review comments
MichelHollands Aug 17, 2020
5d7e5d6
Replace interceptor with httpsnoop library.
pstibrany Aug 19, 2020
c619e11
Metrics for HTTP and gRPC message sizes and inflight requests.
pstibrany Aug 19, 2020
e56d087
Added metrics test.
pstibrany Aug 19, 2020
0a93599
Merge pull request #193 from MichelHollands/make_middleware_overridable
bboreham Aug 20, 2020
78f5b35
Merge pull request #196 from pstibrany/message_size
bboreham Aug 20, 2020
efdf852
s/Kuberneretes/Kubernetes/
jdbaldry Sep 4, 2020
35757bd
Merge pull request #200 from jdbaldry/fix-httpgrpc-typo
Sep 4, 2020
07a42c7
Make HTTP middleware optional (#194)
MichelHollands Sep 14, 2020
613fc91
Add exemplar support to middleware
beorn7 Oct 27, 2020
dbcd94f
Merge pull request #202 from beorn7/master
bboreham Oct 29, 2020
0525743
tracing: Allow specifying JAEGER_ENDPOINT instead of sampling server …
chancez Nov 5, 2020
6c5e5a0
Expose grpc keepalive enforcement policy options.
pstibrany Nov 18, 2020
14b1a40
Merge pull request #205 from pstibrany/expose-keepalive-policy-settings
bboreham Nov 19, 2020
2c0d409
Merge pull request #204 from chancez/jaeger_collector_http
bboreham Dec 1, 2020
35a9ce9
s/faviourite/preferred
jdbaldry Dec 11, 2020
fe17661
Set the content-length of httpgrpc request.
cyriltovena Jan 11, 2021
c84ffa6
Replace `ioutil.NopCloser` with a custom one.
cyriltovena Jan 11, 2021
ac67b41
Merge pull request #211 from cyriltovena/bytesbuffer
bboreham Jan 11, 2021
700adae
Merge pull request #210 from cyriltovena/content-length-fix
bboreham Jan 12, 2021
f081cce
Merge pull request #208 from jdbaldry/patch-2
bboreham Jan 12, 2021
d4564f3
Fix panic in server i13n matching NotFoundHandler
colega Feb 23, 2021
f6cb631
Unindent getRouteName by using early returns
colega Feb 25, 2021
a59f180
Merge pull request #213 from colega/fix-panic-instrumenting-not-found…
bboreham Feb 25, 2021
26c5c5b
support custom registerer
rfratto Mar 26, 2021
c853648
Add metric "tcp_connections" for number of TCP connections to server.
stevesg Apr 13, 2021
bfca92a
Merge pull request #214 from stevesg/num-tcp-conns
bboreham Apr 19, 2021
98127c5
add tcpv4 support
3Xpl0it3r Jun 15, 2021
b43cc4a
Merge pull request #217 from 3Xpl0it3r/tcpv4-support
bboreham Jun 16, 2021
c40d0ef
tracing: add options to NewFromEnv
hairyhenderson Jul 20, 2021
aa1d61d
Merge pull request #218 from hairyhenderson/tracing-newfromenv-with-o…
bboreham Jul 22, 2021
cfc9b5f
Refactor: move ExtractTraceID functions to tracing package
bboreham Aug 26, 2021
27bddff
Add exemplars to 'instrument' package
bboreham Aug 24, 2021
6b8de30
refactor: re-use ObserveWithExemplar function
bboreham Aug 26, 2021
7014be1
Add exemplars to gRPC instrumentation
bboreham Aug 26, 2021
16ad2ef
Merge pull request #220 from weaveworks/instrument-exemplars
bboreham Sep 1, 2021
4e159a5
Allow blank network in server.New
bboreham Sep 1, 2021
f3d6122
Merge pull request #221 from weaveworks/allow-blank-network
bboreham Sep 1, 2021
d37f665
gRPC stream middleware: move metrics after tracing
bboreham Sep 13, 2021
36f2692
Merge pull request #222 from weaveworks/fix-grpc-stream-exemplars
bboreham Sep 13, 2021
7c8a744
Migrating from go-kit/kit/log to the slimmer go-kit/log
Oct 9, 2021
dd05e1a
Merge pull request #226 from dannykopping/dannykopping/go-kit
bboreham Oct 15, 2021
33ead4e
Add benchmark for Debugf()
bboreham Oct 17, 2021
5d2d90e
Filter by log level before anything else
bboreham Oct 17, 2021
2fe113d
Avoid Sprintf when log line is filtered out
bboreham Oct 17, 2021
22c14a5
Revert "logging: Add ability to deduplicate log messages (#48)"
bboreham Mar 22, 2018
605ae0d
Merge pull request #91 from weaveworks/remove-log-dedup
bboreham Oct 19, 2021
ac2d3b4
Merge pull request #227 from weaveworks/speedup-logging
bboreham Oct 21, 2021
eb76074
fix master build
rfratto Oct 22, 2021
c935aeb
Merge pull request #229 from rfratto/fix-master-build
bboreham Oct 22, 2021
56b8fa7
replace node_exporter https package with exporter-toolkit
rfratto Oct 22, 2021
70c7a8e
Added tcp_connections_limit metric
pracucci Oct 25, 2021
ed7a4aa
Merge pull request #231 from pracucci/add-tcp-connections-limit-metric
bboreham Oct 25, 2021
de4b7c8
Add a tag with the user-agent to traces
simonswine Nov 4, 2021
d2e57b1
Merge pull request #228 from rfratto/custom-registerer
bboreham Nov 4, 2021
d35bdeb
undo whitespace changes to server/server_test.go
rfratto Nov 4, 2021
b92d9aa
Merged both tag setters into a single MWSpanObserver
simonswine Nov 9, 2021
a3bc5dd
Merge pull request #232 from simonswine/20211104_add-user-agent-to-span
bboreham Nov 9, 2021
55ea099
Merge pull request #230 from rfratto/use-exporter-toolkit
bboreham Dec 22, 2021
81324d0
middleware: Add gRPC instrumentation utilities from dskit
aknuds1 Dec 22, 2021
553436c
middleware: Rename client instrumentation functions
aknuds1 Dec 22, 2021
9dc2a88
middleware: Move client instrumentation functions to grpc_instrumenta…
aknuds1 Dec 22, 2021
da8b5c7
middleware: Slight cleanup
aknuds1 Dec 22, 2021
59c2e2a
add flag to log requests at info level
colin-stuart Feb 7, 2022
325c851
fix comment for LogRequestsAtInfoLevel
colin-stuart Feb 7, 2022
5fd699a
add yaml tag & add LogRequestsAtInfoLevel to RegisterFlags
colin-stuart Feb 7, 2022
3422262
add method to set log level for logging with request
colin-stuart Feb 9, 2022
ea5ad02
Add user and org labels to observed exemplars
colega Feb 15, 2022
ab36b6c
Revert "add method to set log level for logging with request"
colin-stuart Feb 18, 2022
05ca4b7
call logWithRequest once
colin-stuart Feb 18, 2022
959cf11
middleware: Simplify as suggested by @pracucci
aknuds1 Feb 22, 2022
28aecff
fix typo in registering LogRequestAtInfoLevel flag
colin-stuart Mar 1, 2022
356ab2d
Merge pull request #236 from colin-stuart/add-flag-to-log-requests-at…
bboreham Mar 2, 2022
73f00dd
Merge pull request #237 from colega/user-and-org-labels-on-exemplars
bboreham Apr 28, 2022
0fc6026
Removed debug log on successfuly gRPC requests from GRPCServerLog
pracucci May 20, 2022
af493c3
Make debug logging on successful gRPC requests from GRPCServerLog opt…
zenador Jun 29, 2022
6ecc7c6
Update server/server.go
zenador Jun 29, 2022
4396b19
Apply changes according to code review
zenador Jun 29, 2022
e22efa8
Merge pull request #244 from zenador/remove-debug-logs-on-success-req…
bboreham Jun 29, 2022
e9649be
Merge pull request #234 from aknuds1/feat/add-dskit-middleware
bboreham Jun 29, 2022
0b1e88d
server: Remove advanced TLS config parameters
aknuds1 Jul 5, 2022
d074295
Merge pull request #245 from aknuds1/chore/hide-tls-params
bboreham Jul 6, 2022
deac713
Revert "Add user and org labels to observed exemplars"
colega Jul 19, 2022
6a76c34
Merge pull request #247 from colega/revert-237-user-and-org-labels-on…
bboreham Jul 19, 2022
3f828e5
server: Expose `http` and `grpc` listen addresses.
kavirajk Aug 8, 2022
3b30dcd
Merge pull request #249 from kavirajk/kavirajk/expose-listener-addr
bboreham Aug 9, 2022
6bf99cf
Bugfix server tcp metrics to use the configured registry or the defau…
ssncferreira Aug 10, 2022
d6fd6c9
Merge pull request #250 from ssncferreira/server_tcp_metrics_fix
bboreham Aug 10, 2022
1b27f9b
Fix incorrect import of obsolete github.com/go-kit/kit/log package
hairyhenderson Aug 18, 2022
54029b5
Merge pull request #253 from hairyhenderson/fix-incorrect-go-kit-kit-…
bboreham Sep 1, 2022
9f7a500
httpgrpc/server: Update NewClient to not use WithBalancerName
jpkrohling Aug 29, 2022
99c5e0f
Fix 'make protos'
bboreham Sep 9, 2022
60635c8
Merge pull request #258 from weaveworks/update-build
stefanprodan Sep 12, 2022
ac27843
Merge pull request #254 from jpkrohling/jpkrohling/issue239
bboreham Sep 13, 2022
3f07cc7
Implement `http.Flusher` interface on Log middleware (#257)
leizor Sep 15, 2022
9034106
Allow config of TLS cipher suites and min version (#256)
bboreham Sep 16, 2022
857aaa8
Tweak TLS server option help text
bboreham Sep 27, 2022
8643608
Merge pull request #259 from weaveworks/tls-text
bboreham Sep 27, 2022
561ca94
Reproducable httpgrpc.pb.go build
krajorama Nov 24, 2022
719ed66
Merge pull request #264 from krajorama/reproducable-proto-build
bboreham Nov 24, 2022
2f34232
Make gogo.proto import vendoring agnostic
krajorama Nov 25, 2022
57a5767
Merge pull request #265 from krajorama/vendoring-agnostic-proto-import
bboreham Nov 25, 2022
b93bf2a
Updated prometheus/exporter-toolkit to v0.8.1
rabenhorst Nov 14, 2022
92c1133
Fixed tests
rabenhorst Nov 14, 2022
d1f6500
Merge pull request #262 from rabenhorst/prometheus-exporter-toolkit-v…
bboreham Dec 1, 2022
a09fae5
Use ChainInterceptor from upstream grpc
bboreham Jan 17, 2023
9dd9f9e
Small testcode lint fixes (#269)
krajorama Jan 17, 2023
d13f98b
Merge pull request #273 from weaveworks/grpc-chain
bboreham Jan 19, 2023
404af97
server test: don't compare error for exact equality
bboreham Jan 19, 2023
4ae107a
server: remove unused fields from Client struct
bboreham Jan 19, 2023
5c70511
replace deprecated 'grpc.WithInsecure'
bboreham Jan 19, 2023
b8f0466
middleware: fix lint complaint about buf.String
bboreham Jan 19, 2023
642d5cf
miscelaneous lint fixes
bboreham Jan 19, 2023
2735988
server: check error before closing connection
bboreham Jan 19, 2023
c19e0bf
Log middleware now accepts a list of headers to exclude
jesusvazquez Feb 7, 2023
5f00517
Merge pull request #277 from jesusvazquez/jvp/allow-to-set-more-exclu…
bboreham Feb 8, 2023
0518cf5
Enable native histograms for the request_duration_seconds histogram
beorn7 Mar 14, 2023
9cc61f5
Merge pull request #280 from beorn7/native-histograms
bboreham Mar 15, 2023
57181cc
update grpc
alanprot Mar 15, 2023
dbbca1f
Merge pull request #281 from alanprot/update-grpc
bboreham Apr 11, 2023
d3f132e
Merge pull request #275 from weaveworks/lint-cleanup
bboreham Apr 11, 2023
c01ae0b
Add Unwrap method to http.ResponseWriter implementations. (#283)
pstibrany May 9, 2023
6458b3d
Add description to command line flags (#287)
krajorama May 9, 2023
145055d
Add support to route both GRPC and HTTP over the HTTP server (#288)
joe-elliott May 11, 2023
02fefc0
Make DisableRequestSuccessLog configurable. (#284)
DylanGuedes May 22, 2023
c0dd3cf
Allow users to manually register metrics
thampiotr May 25, 2023
dd60ed3
Clean up some linter warnings
thampiotr May 25, 2023
ff58c64
Merge pull request #289 from thampiotr/reuse-existing-metrics
bboreham May 31, 2023
2d005b2
grpc: use errors.Is to check if error is Canceled
bboreham Jul 5, 2023
2a90e0c
Merge pull request #292 from weaveworks/grpc-is-canceled
bboreham Jul 13, 2023
24cb817
Make gRPC logging optional via a custom interface (#299)
bboreham Jul 28, 2023
7dc4c19
Add provenance and license comments to files migrated from weaveworks…
charleskorn Aug 3, 2023
ab37e55
Merge branch 'weaveworks-common' into charleskorn/migrate-weaveworks-…
charleskorn Aug 3, 2023
ab45576
Update imports to match new package paths
charleskorn Aug 3, 2023
3cccf5b
Fix linting issues.
charleskorn Aug 3, 2023
062ea8d
Fix package paths in protobuf descriptors and regenerate with gogo/pr…
charleskorn Aug 3, 2023
bc7854c
Fix linting issues in migrated code.
charleskorn Aug 3, 2023
cf8bdc1
Remove dependency on deprecated package
charleskorn Aug 3, 2023
2ea3a37
Replace use of `golang.org/x/net/context` with `context`
charleskorn Aug 3, 2023
273c830
Replace use of `prometheus` package with `promauto` where possible
charleskorn Aug 3, 2023
0e1e573
Add changelog entry.
charleskorn Aug 3, 2023
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ vendor
.idea
.vscode
.DS_Store
server/certs/*.key
server/certs/*.crt
server/certs/*.csr
server/certs/*.srl
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
* [ENHANCEMENT] BasicLifecycler: Added `RingTokenGenerator` configuration that specifies the `TokenGenerator` implementation that is used for token generation. Default value is nil, meaning that `RandomTokenGenerator` is used. #323
* [ENHANCEMENT] Ring: add support for hedging to `DoUntilQuorum` when request minimization is enabled. #330
* [ENHANCEMENT] Lifecycler: allow instances to register in ascending order of ids in case of spread minimizing token generation strategy. #326
* [ENHANCEMENT] Remove dependency on `github.com/weaveworks/common` package by migrating code to a corresponding package in `github.com/grafana/dskit`. #342
* [BUGFIX] spanlogger: Support multiple tenant IDs. #59
* [BUGFIX] Memberlist: fixed corrupted packets when sending compound messages with more than 255 messages or messages bigger than 64KB. #85
* [BUGFIX] Ring: `ring_member_ownership_percent` and `ring_tokens_owned` metrics are not updated on scale down. #109
Expand Down
3 changes: 2 additions & 1 deletion crypto/tls/test/tls_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/weaveworks/common/server"
"golang.org/x/time/rate"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/health/grpc_health_v1"
"google.golang.org/grpc/keepalive"

"github.com/grafana/dskit/server"

"github.com/grafana/dskit/backoff"
"github.com/grafana/dskit/crypto/tls"
)
Expand Down
10 changes: 10 additions & 0 deletions errors/error.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Provenance-includes-location: https://github.com/weaveworks/common/blob/main/errors/error.go
// Provenance-includes-license: Apache-2.0
// Provenance-includes-copyright: Weaveworks Ltd.

package errors

// Error see https://dave.cheney.net/2016/04/07/constant-errors.
type Error string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be replaced by the Go standard library errors.New.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the interests of keeping this migration as simple as possible, I'd like to keep this for now, but I'll come back and review this separately afterwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


func (e Error) Error() string { return string(e) }
28 changes: 14 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ require (
github.com/cespare/xxhash v1.1.0
github.com/cristalhq/hedgedhttp v0.7.0
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb
github.com/felixge/httpsnoop v1.0.3
github.com/go-kit/log v0.2.1
github.com/go-redis/redis/v8 v8.11.5
github.com/gogo/googleapis v1.1.0
github.com/gogo/protobuf v1.3.2
github.com/gogo/status v1.1.0
github.com/golang/protobuf v1.5.3
github.com/golang/snappy v0.0.4
github.com/gorilla/mux v1.8.0
github.com/grafana/gomemcache v0.0.0-20230316202710-a081dae0aba9
github.com/hashicorp/consul/api v1.15.3
github.com/hashicorp/go-cleanhttp v0.5.2
Expand All @@ -22,19 +26,27 @@ require (
github.com/hashicorp/memberlist v0.3.1
github.com/miekg/dns v1.1.50
github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e
github.com/opentracing-contrib/go-stdlib v1.0.0
github.com/opentracing/opentracing-go v1.2.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.15.1
github.com/prometheus/client_model v0.4.0
github.com/prometheus/common v0.43.0
github.com/prometheus/exporter-toolkit v0.8.2
github.com/sercand/kuberesolver/v4 v4.0.0
github.com/sirupsen/logrus v1.8.1
github.com/soheilhy/cmux v0.1.5
github.com/stretchr/testify v1.8.1
github.com/weaveworks/common v0.0.0-20230511094633-334485600903
github.com/uber/jaeger-client-go v2.28.0+incompatible
github.com/uber/jaeger-lib v2.2.0+incompatible
github.com/weaveworks/promrus v1.2.0
go.etcd.io/etcd/api/v3 v3.5.0
go.etcd.io/etcd/client/pkg/v3 v3.5.0
go.etcd.io/etcd/client/v3 v3.5.0
go.uber.org/atomic v1.10.0
go.uber.org/goleak v1.2.0
golang.org/x/exp v0.0.0-20230321023759-10a507213a29
golang.org/x/net v0.9.0
golang.org/x/sync v0.1.0
golang.org/x/time v0.1.0
google.golang.org/grpc v1.55.0
Expand All @@ -47,19 +59,16 @@ require (
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.4.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/gogo/googleapis v1.1.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/gomodule/redigo v1.8.9 // indirect
github.com/google/btree v1.0.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-hclog v0.14.1 // indirect
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect
Expand All @@ -75,25 +84,16 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/onsi/gomega v1.24.0 // indirect
github.com/opentracing-contrib/go-stdlib v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/exporter-toolkit v0.8.2 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect
github.com/sercand/kuberesolver/v4 v4.0.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/uber/jaeger-client-go v2.28.0+incompatible // indirect
github.com/uber/jaeger-lib v2.2.0+incompatible // indirect
github.com/weaveworks/promrus v1.2.0 // indirect
github.com/yuin/gopher-lua v0.0.0-20210529063254-f4c35e4016d9 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/mod v0.8.0 // indirect
golang.org/x/net v0.9.0 // indirect
golang.org/x/oauth2 v0.7.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
Expand Down
Loading