Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 5dcfe9b

Browse files
committed
Allow anything, not just strings
1 parent 37de93e commit 5dcfe9b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

logging/bundle.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ type Element struct {
2121

2222
// Resource is a logging resource
2323
type Resource struct {
24-
ResourceType string `json:"resourceType"` // LogEvent
25-
ID string `json:"id"` // 7f4c85a8-e472-479f-b772-2916353d02a4
26-
ApplicationName string `json:"applicationName"` // OPS
27-
EventID string `json:"eventId"` // 110114
28-
Category string `json:"category"` // TRACELOG
29-
Component string `json:"component"` // "TEST"
30-
TransactionID string `json:"transactionId"` // 2abd7355-cbdd-43e1-b32a-43ec19cd98f0
31-
ServiceName string `json:"serviceName"` // OPS
32-
ApplicationInstance string `json:"applicationInstance"` // INST-00002
33-
ApplicationVersion string `json:"applicationVersion"` // 1.0.0
34-
OriginatingUser string `json:"originatingUser"` // SomeUser
35-
ServerName string `json:"serverName"` // app.example.com
36-
LogTime string `json:"logTime"` // 2017-01-31T08:00:00Z
37-
Severity string `json:"severity"` // INFO
38-
LogData LogData `json:"logData"` // Log data
39-
Custom json.RawMessage `json:"custom,omitempty"` // Custom log fields
40-
Meta map[string]string `json:"-"`
24+
ResourceType string `json:"resourceType"` // LogEvent
25+
ID string `json:"id"` // 7f4c85a8-e472-479f-b772-2916353d02a4
26+
ApplicationName string `json:"applicationName"` // OPS
27+
EventID string `json:"eventId"` // 110114
28+
Category string `json:"category"` // TRACELOG
29+
Component string `json:"component"` // "TEST"
30+
TransactionID string `json:"transactionId"` // 2abd7355-cbdd-43e1-b32a-43ec19cd98f0
31+
ServiceName string `json:"serviceName"` // OPS
32+
ApplicationInstance string `json:"applicationInstance"` // INST-00002
33+
ApplicationVersion string `json:"applicationVersion"` // 1.0.0
34+
OriginatingUser string `json:"originatingUser"` // SomeUser
35+
ServerName string `json:"serverName"` // app.example.com
36+
LogTime string `json:"logTime"` // 2017-01-31T08:00:00Z
37+
Severity string `json:"severity"` // INFO
38+
LogData LogData `json:"logData"` // Log data
39+
Custom json.RawMessage `json:"custom,omitempty"` // Custom log fields
40+
Meta map[string]interface{} `json:"-"`
4141
}
4242

4343
// LogData is the payload of a log message

0 commit comments

Comments
 (0)