0.2.82
This commit is contained in:
@@ -111,17 +111,20 @@ func appendField(target []field, groups []string, attr slog.Attr) []field {
|
||||
// Anything unranked keeps the order the caller wrote it in, which is usually the order
|
||||
// that reads best for that particular event.
|
||||
var fieldRank = map[string]int{
|
||||
"component": 1,
|
||||
"user": 2,
|
||||
"device": 3,
|
||||
"client": 4,
|
||||
"correlation": 5,
|
||||
"play_session_id": 6,
|
||||
"protocol": 7,
|
||||
"method": 8,
|
||||
"path": 9,
|
||||
"status": 10,
|
||||
"duration": 11,
|
||||
"component": 1,
|
||||
"user": 2,
|
||||
// The person watching sits beside the account they watch through, because on a
|
||||
// household running viewers those are different answers and the line has to give both.
|
||||
"viewer": 3,
|
||||
"device": 4,
|
||||
"client": 5,
|
||||
"correlation": 6,
|
||||
"play_session_id": 7,
|
||||
"protocol": 8,
|
||||
"method": 9,
|
||||
"path": 10,
|
||||
"status": 11,
|
||||
"duration": 12,
|
||||
// Constant per process, so it belongs at the end of the line rather than in front
|
||||
// of the fields that differ between events.
|
||||
"version": 900,
|
||||
|
||||
Reference in New Issue
Block a user