fix(prometheus): clean up default Prometheus metric collectors on stop

This commit is contained in:
2026-03-23 14:51:14 +00:00
parent ed05c01abc
commit a01e21663f
4 changed files with 39 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-03-23 - 3.0.3 - fix(prometheus)
clean up default Prometheus metric collectors on stop
- Return cleanup handlers from default metric registration for event loop and GC observers.
- Dispose registered Prometheus default metric collectors when stopping Smartmetrics to prevent lingering observers.
## 2026-03-02 - 3.0.2 - fix(pidusage)
prune history entries for PIDs not present in the requested set to avoid stale data and memory growth