Skip to content

Commit

Permalink
Logging: Add traceId and spanId fields
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Lo-A-Foe <[email protected]>
  • Loading branch information
loafoe committed Oct 23, 2021
1 parent 832276c commit 3bdfdc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logging/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type Resource struct {
ServerName string `json:"serverName"` // app.example.com
LogTime string `json:"logTime"` // 2017-01-31T08:00:00Z
Severity string `json:"severity"` // INFO
TraceID string `json:"traceId"` // xxx
SpanID string `json:"spanId"` // yyy
LogData LogData `json:"logData"` // Log data
Custom json.RawMessage `json:"custom,omitempty"` // Custom log fields
Meta map[string]interface{} `json:"-"`
Expand Down

0 comments on commit 3bdfdc2

Please sign in to comment.