Skip to content

Conversation

@bencehornak
Copy link

Description:

I have noticed some issues with the "Reading data" section of the disk buffering README.

Firstly, the CompletableResultCodes are not awaited, they are just fired and forgotten, causing leaks and potential performance problems in the embedding application.

Secondly, the errors encountered during exporting are simply ignored, and the iteration goes on causing the unsuccessfully exported batches to be deleted permanently. This means that if there is an IOException for example due to the device or the telemetry backend being offline, the telemetry is dropped silently.

In the proposed example both issues are addressed.

Existing Issue(s):

Related: open-telemetry/opentelemetry-android#1493

Testing:

N/A (only changed a README)

@bencehornak
Copy link
Author

I find the design of StorageIterator counterintuitive, because as opposed to most Iterators, its next() method has a side-effect, namely that it deletes a file from the disk. I have created a ticket for discussing this topic: #2540.

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.

1 participant