[confgenerator] Add parse_multiline Otel Logging experimental support.
#2110
+7,846
−30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is "close enough" implementation of the
parse_multilineprocessor that uses Fluent-bit state machine solutions. The Otel recombine uses ais_first_entryoris_last_entry(only one can be set) to create multi-line log groups.Limitations
Summary : The solution works nicely with individual languages
go,pythonorjavaused separately. Since there are possible overlapping of the format of "stacktrace" log lines, the interactions of setting multiple languages may be to fragile to implement. A "state machine" solutions avoids this issues since being in ago,pythonorjavalanguage starting state reduces the possible "continuing" states.The current implemented solution tries to separate all possible log lines into 4 sets / categories :
Java Log EntryJava First Line Log Entryto start a multiline group.nestedmutli-line groups.Python Log EntryPython First Line Log Entryto start a multiline group.nestedmutli-line groups.Go Log EntryGo First Line Log Entryto start a multiline group.nestedmutli-line groups.Not a Go or Python or Java Log EntryThis solution depends completely in how accurate an descriptive are the "regex" patterns that describe each category. The main edge case that won't solvable (or may be too fragile) is the interactions between languages.
For example, using multiple languages causes a lot of edge cases.
Related issue
b/413446918
How has this been tested?
Checklist: