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

fix(log_to_metric transform): Drop events where field is null #7487

Merged
merged 1 commit into from
May 26, 2021

Conversation

jszwedko
Copy link
Member

This is the documented behavior but we were not honoring it.

Signed-off-by: Jesse Szwedko jesse@szwedko.me

This is the documented behavior but we were not honoring it.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
@jszwedko jszwedko requested review from spencergilbert, a team and pablosichert and removed request for a team May 17, 2021 17:57
Copy link
Contributor

@spencergilbert spencergilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit/observation

@@ -3,6 +3,26 @@ use crate::template::TemplateParseError;
use metrics::counter;
use std::num::ParseFloatError;

pub(crate) struct LogToMetricFieldNull<'a> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like I've seen these generally ordered in the file alphabetically, if that's a "standard" we should move this below LogToMetricFieldNotFound

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, interesting, I certainly haven't been ordering them that way. I think if they are that is probably incidental.

@jszwedko jszwedko merged commit b3a27d4 into master May 26, 2021
@jszwedko jszwedko deleted the omit-null-fields branch May 26, 2021 14:07
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.

2 participants