Skip to content
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

[chore] Add internal pdatautil.GroupByResourceLogs #33311

Merged
merged 1 commit into from
May 31, 2024

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented May 30, 2024

This is a first step towards a Flatten/Unflatten workaround for OTTL's data corruption issue, specifically this would support Unflatten. The workaround was discussed in a recent collector SIG and it sounded like it would be acceptable if available behind a feature gate and only for the transform processor. If this is accepted I'll work on a Flatten utility next, then integrate them into the tranform processor to prove end-to-end. Finally, I'll implement similar features for metrics and traces.

This PR adds an internal utility package which simplifies grouping logs by resource and scope. I'm proposing this initially in internal/pdatautil but the functionality could eventually be merged into pkg/pdatautil if we find it useful elsewhere.

@djaglowski djaglowski force-pushed the group-logs branch 7 times, most recently from f906507 to 8c6fe69 Compare May 31, 2024 13:58
@djaglowski djaglowski marked this pull request as ready for review May 31, 2024 14:28
@djaglowski djaglowski requested review from a team and dashpole May 31, 2024 14:28
@djaglowski djaglowski changed the title [chore] Add internal pdatautil.GroupByResource [chore] Add internal pdatautil.GroupByResourceLogs May 31, 2024
@djaglowski djaglowski merged commit 4f7a6b1 into open-telemetry:main May 31, 2024
162 checks passed
@djaglowski djaglowski deleted the group-logs branch May 31, 2024 21:33
@github-actions github-actions bot added this to the next release milestone May 31, 2024
djaglowski added a commit that referenced this pull request Jun 1, 2024
Followup to #33311. Adds the ability to flatten logs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants