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

Do not send empty values in case of errors #2032

Closed
wants to merge 1 commit into from

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Jul 14, 2016

It used to be that we were sending zero values (e.g. "" for string, 0 for int)
in case of errors getting a particular value.

Fixes #1972.

I'm not very happy with this implementations, because it requires a lot of repetition when doing the conversions. I want to try another approach, but I'm opening this one for discussion and to have something to compare the new code against.

It used to be that we were sending zero values (e.g. "" for string, 0 for int)
in case of errors getting a particular value.

Fixes elastic#1972.
@tsg tsg added in progress Pull request is currently in progress. discuss Issue needs further discussion. review labels Jul 14, 2016
@tsg
Copy link
Contributor Author

tsg commented Jul 14, 2016

Closing in favor of #2034 which I think is better.

@tsg tsg closed this Jul 14, 2016
tsg pushed a commit to tsg/beats that referenced this pull request Jul 14, 2016
This is an alternative implementation of elastic#2032. Instead of collecting the errors
and then removing the empty values, we define a schema of conversions and we use code
apply them, so we have the opportunity to handle errors.

Fixes elastic#1972.
urso pushed a commit that referenced this pull request Jul 15, 2016
This is an alternative implementation of #2032. Instead of collecting the errors
and then removing the empty values, we define a schema of conversions and we use code
apply them, so we have the opportunity to handle errors.

Fixes #1972.
@tsg tsg deleted the metricbeat_empty_values branch August 25, 2016 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issue needs further discussion. in progress Pull request is currently in progress. review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant