fluent / fluent-bit-docs

Fluent Bit - Official Documentation

Home Page:https://docs.fluentbit.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[stackdriver] How do I specify logging.googleapis.com/spanId?

contra-ci opened this issue · comments

It appears that the stackdriver plugin only supports logging.googleapis.com/trace:

https://github.com/fluent/fluent-bit-docs/blob/master/pipeline/outputs/stackdriver_special_fields.md

How do I identify the logging.googleapis.com/spanId?

I tried spanId, but that isn't picked up:

'logging.googleapis.com/spanId': spanId,
// projects/PROJECT_ID/traces/TRACE_ID
'logging.googleapis.com/trace': `projects/contrawork/traces/${traceId}`,

I think this was actually the case of us running old version of fluent-bit.

Updating to the latest version does correctly hoist the property.

However, this is still not documented.

I discovered it by looking at the source code https://github.com/fluent/fluent-bit/blob/5686334b56ee9d92f0654b0a621113943b175b94/plugins/out_stackdriver/stackdriver.h#L54

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

This issue was closed because it has been stalled for 5 days with no activity.