-
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
File exporter group by attr #30777
File exporter group by attr #30777
Conversation
I will clean up the commit history tomorrow. Should I also move the restructuring part to a separate pr? |
Hi @djaglowski, I have some questions about some implementation details: Error handlingThere are some errors that I'm not sure what's the best approach for handling them (should I simply log them? or return an error?)
I'm mostly concerned about cases where a batch of telemetry data contains multiple resources, and some of them are written successfully, while others fail. Data modificationShould the exporter modify the telemetry data? I use ResourcesX.MoveTo() in my code, because it showed much better performance compared to CopyTo. There is also the RotationI disabled rotation when group_by is active, mainly because I'm concerned about the interaction between rotation (using lumberjack) and the group_by functionality. You can also implement some kind of rotation with group_by by adding a date to the resource attribute, so this didn't seem so much of an issue (although it's time based, not size based, so not exactly the same functionality). What do you think about this? README.mdI noticed this line in the README.md, should I remove it? |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@adam-kiss-sg, I know we merged your first PR but where is this at otherwise? |
Description:
Added the option to write telemetry data into multiple files, where the file path is based on a resource attribute.
Link to tracking Issue:
#24654
Testing:
Added tests and benchmark for now functionality.
Documentation:
Updated README.md