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
Log truncated or dropped events #634
Log truncated or dropped events #634
Conversation
varas
commented
Jul 9, 2021
•
edited
edited
- Log truncated or dropped events as warnings
- Log discarded events by matching rules in debug (will only show up in verbose mode)
cd44d7e
to
310df95
Compare
310df95
to
cb27aca
Compare
if c.cfg.TruncTextValues { | ||
orig := event | ||
event = metric.TruncateLength(event, metric.NRDBLimit) | ||
aclog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT if we only log it if orig != event
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it will remove noice, sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! just small suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM