From 94a1c265e9b3b4b626dbc748259ed57cd37bb08f Mon Sep 17 00:00:00 2001 From: 0Delta <0deltast@gmail.com> Date: Sun, 10 Nov 2024 08:50:43 +0900 Subject: [PATCH] out_stackdriver: Add Special field spanId (#630) Ref: [fluent-bit #4224](https://github.com/fluent/fluent-bit/pull/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> --- pipeline/outputs/stackdriver_special_fields.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pipeline/outputs/stackdriver_special_fields.md b/pipeline/outputs/stackdriver_special_fields.md index eff5d0ee4..b329eaecb 100644 --- a/pipeline/outputs/stackdriver_special_fields.md +++ b/pipeline/outputs/stackdriver_special_fields.md @@ -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" ... } ``` @@ -349,6 +359,7 @@ the logEntry will be: ... } "trace": "projects/your-project-name/traces/0123456789abcdef0123456789abcdef" + "spanId": "1234567890abcdef" ... } ```