You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the answer here is that we should add a preserve_whitespace setting to pkg/stanza/fileconsumer.Config. This setting would need to be passed into NewNewlineSplitFunc and cause us to skip calls to trimWhitespace.
Component(s)
receiver/filelog
What happened?
Description
whitespaces are always trimmed and potential issue while working with other operators
Steps to Reproduce
given CRI logs below, the 2nd line ends with a whitespace
Expected Result
whitespaces are not trimmed, so the regexp for CRI logs would work properly
Actual Result
got error because the 2nd line(last whitespace) got trimmed
Collector version
v0.70.0
Environment information
n/a
OpenTelemetry Collector configuration
Log output
Additional context
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/stanza/operator/helper/multiline.go#L201-L206
The text was updated successfully, but these errors were encountered: