-
Notifications
You must be signed in to change notification settings - Fork 2.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
OTEL collector crashes when using googlecloudpubsub receiver with encoding set to cloud_logging #32007
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
It looks like this panic is happening because a Can you provide a sample log that's causing this panic to happen so we can confirm this to be the case? Incoming data being the wrong format shouldn't cause the collector to panic. The receiver should log an error and drop data instead. |
I believe this is coming from log entries where {
"spanId": "15426074336963245120"
} |
I will have a look, this ticket can be assigned to me |
This issue is reproducible, but I've logged an issue with Google Cloud as it's a bug on their side: I will make the parsing safer so the collector doesn't crash, but I will not detect decimals; I will handle it as a too-large HEX. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
can we do a fix/workaround on the otel collector side for this? I bet GCP is gonna take a while to change this in cloud run. |
@alexvanboxel |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Work has been started of extracting the Cloud Logging encoding from the receiver. This will happen in 3 steps:
|
Component(s)
receiver/googlecloudpubsub
What happened?
Description
I'm trying to use the
googlecloudpubsub
receiver to receive Cloud Logs. I have configured a log router to route all my logs to a pub/sub topic. The inclusion filter on the sink isresource.type = ("cloud_run_revision") OR log_id("dialogflow-runtime.googleapis.com/requests")
. I have no exclusion filter. After some time, the collector crashes with the log output below.Setting
encoding
toraw_text
works without issue.Steps to Reproduce
Expected Result
The collector does not crash.
Actual Result
The collector crashes.
Collector version
v0.97.0
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: