micrometer-metrics/micrometer
Log a warning when instrumenting a cache that is not recording stats
开放
#5,066 创建于 2024年5月11日
enhancementhelp wantedinstrumentationmodule: micrometer-core
仓库指标
- 星标
- (4,882 个星标)
- PR 合并指标
- (平均合并 1天 21小时) (30 天内合并 100 个 PR)
描述
Please describe the feature request. It would be nice if a warning were logged (or the user was informed in some way) when a cache is instrumented that is not recording stats.
Rationale For some Cache implementations like Caffeine recording stats is optional. When instrumenting a cache that is not recording stats the meters will constantly report 0 which could be misleading. This is probably not what the user desires.
Additional context
apache/accumulo#4552