Skip to content

Meter registries are not removed from the global registry when the context is closed#50235

Open
kwondh5217 wants to merge 3 commits intospring-projects:mainfrom
kwondh5217:fix/remove-meter-registry-from-global-on-context-close
Open

Meter registries are not removed from the global registry when the context is closed#50235
kwondh5217 wants to merge 3 commits intospring-projects:mainfrom
kwondh5217:fix/remove-meter-registry-from-global-on-context-close

Conversation

@kwondh5217
Copy link
Copy Markdown
Contributor

Remove closed MeterRegistry instances from Metrics.globalRegistry when
the context is closed to prevent memory leaks.

Closes #50232

Signed-off-by: Daeho Kwon <trewq231@naver.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 28, 2026
Signed-off-by: Daeho Kwon <trewq231@naver.com>
@wilkinsona wilkinsona changed the title Remove MeterRegistry from global registry on context close Meter registries are not removed from the global registry when the context is closed Apr 28, 2026
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 28, 2026
@wilkinsona wilkinsona added this to the 3.5.x milestone Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Meter registries are not removed from the global registry when the context is closed

3 participants