Skip to content

Commit

Permalink
docs(logs): describe extracted labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Nov 29, 2023
1 parent 64e779f commit 640f44f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Log message:
"body": "hello world",
"trace_id": "cacb16ac5ace52ebe8749114234a8e58",
"span_id": "36a431d0481b2744",
"severity": "Info",
"severity": "INFO",
"http.duration": 1105000000,
"http.duration.seconds": 1.1054,
"http.method": "GET",
Expand Down Expand Up @@ -129,4 +129,18 @@ Log line search: only in body field.
Special case for traceID and spanID with additional search in traceID and spanID fields.

Labels extraction: handle first `| json |` explicitly, offloading to underlying log storage
where reverse mapping should be executed.
where reverse mapping should be executed.

Extracted labels after `json`:
```
body: "hello world"
trace_id: "cacb16ac5ace52ebe8749114234a8e58"
span_id: "36a431d0481b2744"
severity: "INFO"
http_duration": 1105000000
http_duration_seconds: 1.1054
http_method: "GET"
http_server: true
http_status_code: 200
http_user_agent: "test-agent"
```

0 comments on commit 640f44f

Please sign in to comment.