Tags: scalyr/scalyr-fluentd
Tags
Correctly handle exceptions when we fail to serialize event attribute… …s as JSON (#23) * Fix the plugin to correctly handle the scenarios where serializing a JSON failed due to a partial unicode sequence or similar. There were multiple issues with that code, one of them was that we called value.encoding and only strings have that method available. Other issue was that we didn't have a correct fallback in case value.encode failed. * Improve log message. * Update comment. * Make sure we also correctly handle nested objects and correctly sanitize those as well. * Update the code to correctly handle all the nested types, fix bad test which didn't correctly perform a deep copy / clone. * Move utility code in a separate module, add test cases directly for that module methods. * Bump version, add changelog entry. * Fix typo. * Run tests in verbose mode so we see which tests run and their timing.