Improve stackdriver logs sink #22374
Labels
sink: gcp_stackdriver_logs
Anything `gcp_stackdriver_logs` sink related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
The stackdriver sink support only a small set of the fields Google supports. Useful fields like
labels
and the trace correlation fields are not supportedAttempted Solutions
Proposal
The sink currently seems to have two ways of setting fields:
resource
are fields in the sink config, the name is fixed but the value can be templated. To avoid having them also in the actualjsonPayload
encoding.except_fields
needs to be used. E.g.severity
, which fetches and removes the value from the log message,Both approaches seem like they can work, but neither is ideal. I'd prefer it if the sink would be opinionated and performs fixed format/mapping from the input to LogEntry.
However doing that has 2 issues:
What way does best fit the Vector?
References
Version
v0.44.0
The text was updated successfully, but these errors were encountered: