-
Notifications
You must be signed in to change notification settings - Fork 812
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
Migrating from go-kit/kit/log to the slimmer go-kit/log #4421
Migrating from go-kit/kit/log to the slimmer go-kit/log #4421
Conversation
b9e85db
to
8b48d94
Compare
Signed-off-by: Danny Kopping <[email protected]>
8b48d94
to
5fdf93c
Compare
Signed-off-by: Danny Kopping <[email protected]>
Signed-off-by: Danny Kopping <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@@ -107,3 +107,20 @@ func CheckFatal(location string, err error) { | |||
os.Exit(1) | |||
} | |||
} | |||
|
|||
// TODO(dannyk): remove once weaveworks/common updates to go-kit/log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you open a PR there too, please?
For consistency with Cortex and Prometheus, see - cortexproject/cortex#4421 - prometheus/prometheus#8927
…t#4421) * Migrating from go-kit/kit/log to the slimmer go-kit/log Signed-off-by: Danny Kopping <[email protected]> * Appeasing the linter Signed-off-by: Danny Kopping <[email protected]> * Fixing tests where log lines are produced with different label orders Signed-off-by: Danny Kopping <[email protected]> Signed-off-by: Manish Kumar Gupta <[email protected]>
…t/cortex#4421) * Migrating from go-kit/kit/log to the slimmer go-kit/log Signed-off-by: Danny Kopping <[email protected]> * Appeasing the linter Signed-off-by: Danny Kopping <[email protected]> * Fixing tests where log lines are produced with different label orders Signed-off-by: Danny Kopping <[email protected]>
…t#4421) * Migrating from go-kit/kit/log to the slimmer go-kit/log Signed-off-by: Danny Kopping <[email protected]> * Appeasing the linter Signed-off-by: Danny Kopping <[email protected]> * Fixing tests where log lines are produced with different label orders Signed-off-by: Danny Kopping <[email protected]> Signed-off-by: Alvin Lin <[email protected]>
What this PR does:
This PR aims to align Cortex with Prometheus (see prometheus/prometheus#8927) in its use of
go-kit
's logger.go-kit/kit/log
was split out intogo-kit/log
, and that's all we use ofgo-kit
ostensibly.Note: I had to update some tests since logs get produced with labels in a different order. I think these logs are coming from the vendored Thanos code in the compactor, which may explain why they're ordered differently.
Which issue(s) this PR fixes:
N/A
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]