-
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
Datadog exporter not rendering log attributes correctly #26382
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I would be interested in a fix for this as well. Experiencing the same behaviour running the latest versions (opentelemetry-collector: 0.85.0, opentelemetry-operator: 0.39.1) |
Are there any updates regarding this? The only workaround currently is to set up custom grok rules for every single nested field in Datadog which isn't ideal. |
"isn't ideal" is a huge understatement. A more accurate description would be "as far away as it gets from anything that could be considered a real option" |
This PR adds support for nested log attributes. Fixes: open-telemetry/opentelemetry-collector-contrib#26382
This PR adds support for nested log attributes. Fixes: open-telemetry/opentelemetry-collector-contrib#26382
This PR adds support for nested log attributes. Fixes: open-telemetry/opentelemetry-collector-contrib#26382
* OTEL-919: Add support for nested log attributes This PR adds support for nested log attributes. Fixes: open-telemetry/opentelemetry-collector-contrib#26382 * address feedback * make fmt
**Description:** This PR updates `pkg/otlp/logs` to bring in the changes from the following PR: DataDog/opentelemetry-mapping-go#207. **Link to tracking Issue:** #26382 Fixes #26382
@paulius-valiunas @peter-tar thanks for reporting, this will be fixed in the next release. If you are using the filelog receiver to collect your json logs, please make sure you are using the json_parser:
|
Thanks @mackjmr, I'm looking forward to trying the fix out! |
Component(s)
exporter/datadog
What happened?
Datadog exporter does not export logs in a format that Datadog UI can render correctly
Description
Datadog does not support nested JSON structures in log attributes, so if I have a log message with attributes like:
foo
will be rendered correctly, but the value ofbar
will appear as a JSON string with all the entries squished into one line, as opposed to being correctly rendered as a tree.However, if I manually convert the attributes to this (in my application, before sending logs to the collector):
Then
bar
will be rendered as an expandable tree branch with the childrenbaz
,iRanOutOfNames
andsoIPutSomeGibberishHere
.Steps to Reproduce
Expected Result
Datadog shows
baz
,iRanOutOfNames
andsoIPutSomeGibberishHere
as separate attributes under the parentbar
. I should be able to see correctly rendered (unescaped)some value with "escaped" characters
next to the property namebaz
.Actual Result
Instead, Datadog shows
bar
as a single attribute with the JSON structure all squished into one line with JSON escape sequences etc.Collector version
0.70.0
Environment information
Environment
Using opentelemetry-operator Helm chart version 0.24.0
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: