micrometer-metrics/micrometer

Log a warning when instrumenting a cache that is not recording stats

Open

#5,066 建立於 2024年5月11日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (4,220 star) (935 fork)batch import
enhancementhelp wantedinstrumentationmodule: micrometer-core

描述

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

貢獻者指南

Log a warning when instrumenting a cache that is not recording stats · micrometer-metrics/micrometer#5066 | Good First Issue