-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Receiver] Panic on calling LogRecordCount()
in receiver
#10625
Comments
What's your pipeline looking like, as in, what processors and exporters did you use after this receiver? |
The logs pipeline looks like this:
|
I have a hunch that doing the below:
will fix the issue. This is basically how it's being done in the otlpreceiver. |
That will fix your issue, for sure. |
This fixed it @atoulme. |
Looks like a relatively common issue, as shown in open-telemetry/opentelemetry-collector-contrib#29274. It would be good to document this somewhere. |
Describe the bug
On calling LogRecordCount() after Consume in a receiver, the receiver seems to panic and throw a nil pointer error.
A redacted version of the receiver looks like this:
The redacted stack trace looks like this:
Steps to reproduce
The error is happening at every throughput. [Close to 60K log records]
What did you expect to see?
Panic not to happen
What did you see instead?
Panic
What version did you use?
Additional context
#10402
The text was updated successfully, but these errors were encountered: