micrometer-metrics/micrometer

Support for removing metrics registered by CaffeineCacheMetrics

Open

#5.297 aberto em 10 de jul. de 2024

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)Java (935 forks)batch import
enhancementhelp wantedinstrumentationmodule: micrometer-core

Métricas do repositório

Stars
 (4.220 stars)
Métricas de merge de PR
 (Mesclagem média 1d 21h) (100 fundiu PRs em 30d)

Description

Please describe the feature request. Currently we are able to add instrumentations of lets say caffeine cache based on a reference but we can't remove them.

Rationale The rationale behind this is we have a caffiene cache that is configurable from database config and hence we change the reference for the same and they are re-constructed. In this case we remove the reference to old caches and add new ones but we want to re-register the new ones but since one is already registered with the ealier name the new one is not registered and honoured, hence we should have a way to remove the old ones and be able to replace it with the new ones.

Guia do colaborador