Skip to content

Conversation

@jengmicah
Copy link

@jengmicah jengmicah commented May 9, 2025

Why

The deleted-log-file metrics were added to 1.3.x in #1

The maxHistory metric is currently incremented in checkAndDeleteFile(), which is also invoked by capTotalSize() (a change from 1.2.x to 1.3.x).

This means that hitting the total size cap will increment both totalSizeCap and maxHistory counters.

What

This PR moves the maxHistory update out of checkAndDeleteFile() and into cleanPeriod(), where max history is checked.

I'll also add this to 1.4.x in another PR.

cc @jaredstehler

@jengmicah jengmicah marked this pull request as ready for review May 9, 2025 18:52
@jengmicah jengmicah changed the title Move MAX_HISTORY counter increment into cleanPeriod Move MAX_HISTORY counter increment into cleanPeriod in 1.3.x May 9, 2025
@jengmicah jengmicah merged commit ff70673 into branch_1.3.x_hubspot May 13, 2025
1 check passed
@jengmicah jengmicah deleted the mjeng/patch_delete_metrics branch May 13, 2025 13:45
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