is it possible to have a fixed key, such as 'msg' #9
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. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions