is it possible to have a fixed key, such as 'msg' #9
Unanswered
chenzhiwei
asked this question in
Q&A
Replies: 1 comment 2 replies
|
It is not practical to avoid the key/value structure of the You can also expose an alternate client facing API that accepts some hard coded fields and puts them in the So there are choices, but they are out of scope for this package. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A log message usually have a description, which is not key=value format, such as:
Translate to go-kit log format:
The key "msg" can be fixed.
Something like
Log(msg string, keysAndValues ...interface{})In prometheus code: https://github.com/prometheus/prometheus/blob/main/tsdb/head.go#L466-L491
The key "msg" is redundant here.
All reactions