-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long lines are unexpectedly split into multiple OTEL Log records #35042
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Although the buffer size is 16KB, the maximum log size is 1024KB. |
The bug still behaves the same when using different values for the flush time out. Although, I have not actually tested a value of |
Ok. Did another quick test and the issue is:
Adding a I'll start investigating why the |
Closing this issue, as |
I'm reopening this issue as I've stumbled onto the same behavior. To clarify, the issue occurs when a log is:
What happens is that the flush function kicks in and ejects the token. What I do not understand yet is why the buffer size does not increase up to max log size before the ejection occurs. If it did, then the ejected token would be the entire log (even though it is not explicitly terminated). |
Component(s)
pkg/stanza/fileconsumer, receiver/filelog
What happened?
Description
When using the filelog receiver, any lines that are longer than the default buffer size (16KB) will be split into multiple log records instead of one single log record.
Steps to Reproduce
Expected Result
Lines longer than 16KB gets emitted as one single OTEL Log record
Actual Result
Lines longer than 16KB get emitted as multiple OTEL Log records, each record getting split at the 16KB boundary.
Collector version
v0.108.0
Environment information
Environment
OS: Archlinux
Compiler(if manually compiled): go 1.23.0
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: