-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.go
More file actions
25 lines (19 loc) · 843 Bytes
/
config.go
File metadata and controls
25 lines (19 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package ctxd
// FieldNames defines standard field names.
//
// Default names are aligned with https://www.elastic.co/guide/en/ecs/current/ecs-field-reference.html.
type FieldNames struct {
Timestamp string `default:"@timestamp"`
Message string `default:"message"`
// ClientIP is an IP address of the client (IPv4 or IPv6).
ClientIP string `default:"client.ip"`
HTTPMethod string `default:"http.request.method"`
HTTPResponseBytes string `default:"http.response.bytes"`
HTTPResponseStatus string `default:"http.response.status_code"`
URL string `default:"url.original"`
// UserAgentOriginal is an unparsed user_agent string.
UserAgentOriginal string `default:"user_agent.original"`
SpanID string `default:"span.id"`
TraceID string `default:"trace.id"`
TransactionID string `default:"transaction.id"`
}