Skip to content

Commit 94a1c26

Browse files
0Deltaesmerel
andauthored
out_stackdriver: Add Special field spanId (fluent#630)
Ref: [fluent-bit #4224](fluent/fluent-bit#4224) Signed-off-by: 0Delta <0deltast@gmail.com> Signed-off-by: esmerel <6818907+esmerel@users.noreply.github.com> Co-authored-by: esmerel <6818907+esmerel@users.noreply.github.com>
1 parent ce15167 commit 94a1c26

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pipeline/outputs/stackdriver_special_fields.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,21 @@ The JSON representation is as followed:
334334
"trace": string
335335
```
336336

337+
## Span ID
338+
339+
The span ID within the trace associated with the log entry.
340+
341+
The JSON representation is as followed:
342+
```text
343+
"spanId": string
344+
```
345+
337346
### Use Cases
338347
Set the input log as followed:
339348
```text
340349
jsonPayload {
341350
"logging.googleapis.com/trace": "0123456789abcdef0123456789abcdef"
351+
"logging.googleapis.com/spanId": "1234567890abcdef"
342352
...
343353
}
344354
```
@@ -349,6 +359,7 @@ the logEntry will be:
349359
...
350360
}
351361
"trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef"
362+
"spanId": "1234567890abcdef"
352363
...
353364
}
354365
```

0 commit comments

Comments
 (0)