forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(helpers/multiline): fix force flushing with multiline (#434)
* feat(helpers/multiline): add test for flusher if multiple logs in buffer Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): refactor flusher due to bug Signed-off-by: Dominik Rosiek <[email protected]> * feat(helpers/multiline): add more tests and fixes for multiline Signed-off-by: Dominik Rosiek <[email protected]> * feat(helpers/multiline): add more tests and fixes for multiline Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): add flushed function to forceFlusher Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): wrap splitFuncs with force flusher splitFunc to simplify logic Signed-off-by: Dominik Rosiek <[email protected]> * tests(helpers/multiline): unify force flusher starting data length Signed-off-by: Dominik Rosiek <[email protected]> * feat(helpers/multiline): do not flush empty log Signed-off-by: Dominik Rosiek <[email protected]> * tests(helpers/multiline): do not overengineer tests Signed-off-by: Dominik Rosiek <[email protected]> * feat(helpers/multiline): remove enable force flushing Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): remove NewFlusher function Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): flatter flusherSplitFunc Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): extract force flusher related function from flusherSplitFunc Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): remove splitFuncWrapper Signed-off-by: Dominik Rosiek <[email protected]> * tests(helpers/multiline): do not return empty log for NewNewlineSplitFunc Signed-off-by: Dominik Rosiek <[email protected]> * chore(helpers/multiline): add comment Signed-off-by: Dominik Rosiek <[email protected]> * refactor(helpers/multiline): revert not necessary needed change Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
1 parent
8154878
commit 6bc7c94
Showing
3 changed files
with
185 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.