-
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
Log receivers - Improve translation to pdata, avoid emitting entire pdata.Logs for each log record. #2330
Comments
I'd be willing to work on this but I'll need some guidance on the desired direction of this. My understanding is that there is a If we'd like to somehow make this not 1:1 translation then ... we'd need to aggregate |
I think it makes sense to accumulate
|
I've prepared something that might address this issue in https://github.com/SumoLogic/opentelemetry-collector-contrib/tree/issue-2330-improved-logs-translation Compare across forks: main...SumoLogic:issue-2330-improved-logs-translation @djaglowski If this is more or less the direction we'd like to this in I can add some tests, refactor it a little bit and submit a PR so that we can take it from there. |
@pmalek-sumo This is more or less what I was expecting. Looks like a great start. |
I've created #2694 as a proposal for this issue. Current implementation allows configuration via 2 knobs:
Waiting for your feedback. |
Introduce an aggregation layer to internal/stanza that translates [entry.Entry](https://github.com/open-telemetry/opentelemetry-log-collection/blob/83ae56123ba0bd4cd284c3a20ed7450a606af513/entry/entry.go#L43-L51) into pdata.Logs aggregating logs coming from the same Resource into one entry. **Link to tracking Issue:** #2330 **Testing:** unit tests added
@pmalek-sumo @djaglowski do we expect more improvements or we consider done with this? |
@pmalek-sumo If you are ok with it, I would like to consider this issue done. We can open a new issue to track further proposed changes. |
Sounds good. I am closing this issue. We can continue looking at #2949 |
Introduce an aggregation layer to internal/stanza that translates [entry.Entry](https://github.com/open-telemetry/opentelemetry-log-collection/blob/83ae56123ba0bd4cd284c3a20ed7450a606af513/entry/entry.go#L43-L51) into pdata.Logs aggregating logs coming from the same Resource into one entry. **Link to tracking Issue:** open-telemetry#2330 **Testing:** unit tests added
Import path incorrect for signal, added import "os/signal". Also the current online instructions are broken, ctx is not plumped through, but it is here in the forked markdown, so probably needs to be pushed out.
Currently this translation is 1:1. Need to define and implement a more efficient translation.
The text was updated successfully, but these errors were encountered: