Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Encoder drop additional fields #57

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

IngaFeick
Copy link
Collaborator

@IngaFeick IngaFeick commented Jun 19, 2020

This PR introduces a new config option to automatically discard event fields which are not in the protobuf definition. In the current version 1.2.4 an event with additional fields will be discarded and an error will be logged. This PR adds the option pb3_encoder_drop_unknown_fields. When activated (default) it will remove incorrect fields from the event before attempting the encoding.

@IngaFeick IngaFeick changed the title Encoder drop additional fields [WIP] Encoder drop additional fields Jul 10, 2020
@IngaFeick
Copy link
Collaborator Author

I'm setting this to WIP because we have discovered an NPE when using this in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant