-
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
[exporter/datadog] collector panics on invalid trace & span ids in logs #33566
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thanks for reporting & looking into this @kevinnoel-be looks like you have a fix proposed in DataDog/opentelemetry-mapping-go#340, we will take a look |
I see the fix has been merged, but we still need to have a released version there + updating in the exporter, no? |
Yes, this was autoclosed but let me reopen it until we handle that :) |
Thanks! :) |
**Description:** Upgrade `opentelemetry-mapping-go` to v0.17.0 **Link to tracking Issue:** Fixes #33566
Component(s)
exporter/datadog
What happened?
Description
We have one (internal) service that is producing logs with invalid sized trace & span IDs (32 & 19 bytes length respectively). When our OpenTelemetry collector processes those specific logs the collector panics and gets restarted until next problematic log line (Kubernetes deployment). Any other data (logs, metrics & traces) are getting dropped/missed.
Steps to Reproduce
Expected Result
When trace_id and/or span_id parsing fails on invalid size (or other), the collector doesn't crash and those attributes are forwarded as they are (or are ignored).
Actual Result
The datadog exporter panics on those log lines and we're losing data.
Collector version
v0.100.0
Environment information
Environment
OS: Ubuntu & scratch based Docker image
Compiler: go 1.21.11
OpenTelemetry Collector configuration
Log output
Additional context
An example of log with invalid trace/span IDs:
The problem lies on the lack of size check here & here
The text was updated successfully, but these errors were encountered: