Skip to content

refactor(exporter): rename misleading memory metric variables - #27

Merged
sshanks-kx merged 1 commit into
KxSystems:masterfrom
belowzeroff:fix/f009-rename-misleading-vars
Jul 29, 2026
Merged

refactor(exporter): rename misleading memory metric variables#27
sshanks-kx merged 1 commit into
KxSystems:masterfrom
belowzeroff:fix/f009-rename-misleading-vars

Conversation

@belowzeroff

Copy link
Copy Markdown
Contributor

Rename local memory metric variables so their names match the metrics they define. This is a readability-only change and does not alter exported metric names.

Variable `mem_lim` was assigned to memory_heap_peak_bytes (a peak
tracker, not a limit), and `mem_max` was assigned to
memory_heap_limit_bytes (a limit, not a max). The names suggested
the opposite mapping, creating a maintenance hazard.

Fix: rename `mem_lim` -> `mem_peak`, `mem_max` -> `mem_wmax` to
match their actual metric meaning.
@sshanks-kx
sshanks-kx merged commit bd14f07 into KxSystems:master Jul 29, 2026
2 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.

2 participants