-
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
[fileexporter] refactor to use compressed writer in fileexporter #22079
[fileexporter] refactor to use compressed writer in fileexporter #22079
Conversation
This change probably needs to be documented. It's breaking in a sense, but since the file receiver has not supported the things this is breaking, I would argue it doesn't matter. |
37d1aca
to
f4b742f
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
9204fc5
to
9ccaac8
Compare
@atoulme @codeboten I refactored this change again and resolved a bug I found while testing. Would you mind reviewing again when you get the chance? Thanks! |
aee1536
to
fd1c85b
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description:
[PART 1] Breaking #22021 into 2 PRs
This PR is refactoring of the fileexporter to use a compressed writer. The goal of this change is to make it easier to read compressed data in the filereceiver by using a corresponding compressed reader.
This also makes it clearer to distinguish between the two types of writes. 1. writing line by line used for json and compressed json 2. writing a chunk at a time prefixed with the chunk size
For more context see part 2: #22080
Link to tracking Issue:
Related to #13626
Supports ongoing effort to record and replay telemetry data for experimental/research purposes
Testing:
Locally running otelcontribcol and writing to a file using all supported formats (json, json+compression, proto, proto+compression) and recovering original metrics using filereceiver
Documentation: