You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
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 supported
Attempted 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 actual jsonPayloadencoding.except_fields needs to be used. E.g.
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:
it introduces a 3rd way of working, but fixing the others would be a breaking change
its a breaking change, as it potentially removes fields that used to end up in the jsonPayload.
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: