-
Notifications
You must be signed in to change notification settings - Fork 47
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
Throw exception if no field is provided when calling toLineProtocol() #150
base: master
Are you sure you want to change the base?
Throw exception if no field is provided when calling toLineProtocol() #150
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #150 +/- ##
=========================================
Coverage 74.86% 74.86%
Complexity 424 424
=========================================
Files 25 25
Lines 1094 1094
=========================================
Hits 819 819
Misses 275 275
☔ View full report in Codecov by Sentry. |
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.
Hi,
Thanks for the issue and taking the time to put up a PR. We would like to maintain the default behavior of not throwing an exception. The change could cause issues for users who upgrade and suddenly start getting exceptions.
Is there a way you could create an option in the client to turn on this new behavior?
Hi, I propose adding the |
Unfortunately, at this late in the life-cycle we do not want introduce this type of change. |
Closes #149
Proposed Changes
toLineProtocol() will throw an exception if no field is provided. This prevents the data from being silently converted to null and discarded, thereby providing the developer with a clear error message, as fields are mandatory.
Checklist
make test
completes successfully