-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
OTLP Logs drop Resource and Scope attributes #8205
Comments
This is the problematic section: fluent-bit/plugins/out_opentelemetry/opentelemetry.c Lines 764 to 770 in 5626757
|
There are two issues to fix this issue.
I sent a patch to fix issue 1 storing resouce and scope as metadata. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the |
Unstale
…On Sat, Apr 20, 2024, 6:50 PM github-actions[bot] ***@***.***> wrote:
This issue is stale because it has been open 90 days with no activity.
Remove stale label or comment or this will be closed in 5 days. Maintainers
can add the exempt-stale label.
—
Reply to this email directly, view it on GitHub
<#8205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWJXJSHVA3PLY6VBIVF2HJDY6MLPPAVCNFSM6AAAAAA7TTWOIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXHA2DOMRTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi, any updates on this, work arounds , anything. I have same problem, I use k6 to generate logs and sent it to fluentbit incase of http it works as expected and I see full logs but in case of opentelemetry some logs info are missing. |
OTel logs compat issues are solved with this:
This will be part of v3.1 release (~June 24) |
+1. Same issue @edsiper Expecting for 3.1 soon |
Closing this ticket since #8898 and other enhancements are already merged. |
Bug Report
Describe the bug
When you send OTLP logs into Fluent Bit and then send them back out, any Resource or Scope attributes are lost. This is because
out_opentelemetry
sending logs just initializes and empty resource and scope, thus meaning any data sent in are ignored.To Reproduce
When this OTLP goes in:
I passed it into this Fluent Bit config:
Then sent it to another local OTel collector and dumped the result to a file.
This is the OTLP that came out:
The config I mentioned above, and what I did to reproduce was used an otel collector to read logs from a file and export otlphttp to Fluent Bit, then Fluent Bit output to another otel collector that receives the OTLP and dumps the result to a file.
Expected behavior
The data I passed in with OTLP should, at minimum, be the same when it comes out if there is no processing done.
Screenshots
Your Environment
Additional context
This makes Fluent Bit basically unusable for any OTLP-focused pipelines. Losing resource attributes is a particularly big problem, especially because Fluent Bit doesn't appear to provide any way to decorate Resource with attributes to begin with. (That is worth a separate issue probably). I haven't tried traces, but when I tried metrics this wasn't a problem; the data I passed in was what I got out (although all my metric names were prefixed with underscore, which is also definitely a bug, see issue #8083
The text was updated successfully, but these errors were encountered: