This commit is contained in:
ponzischeme89
2026-08-20 15:06:00 +12:00
parent 549f9c5eed
commit f1164db2c5
52 changed files with 5441 additions and 158 deletions
+14 -11
View File
@@ -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,