Skip to content

Commit

Permalink
out_stackdriver: Add Special field spanId (#630)
Browse files Browse the repository at this point in the history
Ref: [fluent-bit #4224](fluent/fluent-bit#4224)

Signed-off-by: 0Delta <[email protected]>
Signed-off-by: esmerel <[email protected]>
Co-authored-by: esmerel <[email protected]>
  • Loading branch information
0Delta and esmerel authored Nov 9, 2024
1 parent ce15167 commit 94a1c26
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pipeline/outputs/stackdriver_special_fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,21 @@ The JSON representation is as followed:
"trace": string
```

## Span ID

The span ID within the trace associated with the log entry.

The JSON representation is as followed:
```text
"spanId": string
```

### Use Cases
Set the input log as followed:
```text
jsonPayload {
"logging.googleapis.com/trace": "0123456789abcdef0123456789abcdef"
"logging.googleapis.com/spanId": "1234567890abcdef"
...
}
```
Expand All @@ -349,6 +359,7 @@ the logEntry will be:
...
}
"trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef"
"spanId": "1234567890abcdef"
...
}
```
Expand Down

0 comments on commit 94a1c26

Please sign in to comment.