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

Add ability to enable debug logging for disk buffering #753

Merged
merged 5 commits into from
Jan 17, 2025

Conversation

breedx-splk
Copy link
Contributor

Supersedes #664 (which seems to be stalled out).

Resolves #597.

This PR adds a debugEnabled flag to the disk buffering config and converts the config to kotlin.

@breedx-splk breedx-splk requested a review from a team as a code owner January 16, 2025 22:25
Comment on lines 20 to 22
val maxFileAgeForWriteMillis: Long = TimeUnit.SECONDS.toMillis(30),
val minFileAgeForReadMillis: Long = TimeUnit.SECONDS.toMillis(33),
val maxFileAgeForReadMillis: Long = TimeUnit.HOURS.toMillis(18),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should they be const as well? (30, 33, 18)?

): DiskBufferingConfig {
var minRead = minFileAgeForReadMillis
if (minFileAgeForReadMillis <= maxFileAgeForWriteMillis) {
minRead = maxFileAgeForWriteMillis + 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nasty :D but yeah its there in the Java file already

@breedx-splk breedx-splk merged commit a55b22a into open-telemetry:main Jan 17, 2025
3 checks passed
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.

Add setting to enable disk buffering debug mode
2 participants