Closed tvazac closed 10 hours ago
Pinging code owners:
receiver/filelog: @djaglowski
See Adding Labels via Comments if you do not have permissions to add labels yourself.
I'm sorry, I've just found https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/35042 and it's the same issue. When trying to debug problems with large lines, I've created a static file for tests and forget to put \n
at the end of the line.
Component(s)
receiver/filelog
What happened?
Description
When trying to read a very long line (~ 2 MiB) the line is split into multiple chunks, each with 16 386 characters, even when the
max_log_size
is se to10 MiB
.Steps to Reproduce
Using provided config.yaml
And this
over_limit.log
with single line which containes few characters over 16 386.Expected Result
A single line being read as a whole
Actual Result
Two log records are created from single line. First has 16386 characters, the second has few extra characters
Collector version
v0.114.0
Environment information
Environment
Docker
OpenTelemetry Collector configuration
Log output
Additional context
I've found this PR https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/17358 which sets the
const defaultBufSize = 16 * 1024
that matches the size of splited chunks.