micrometer-metrics/micrometer

Cache metrics for http clients

Open

#1,700 创建于 2019年11月11日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)Java (935 fork)batch import
enhancementhelp wantedwaiting for feedback

仓库指标

Star
 (4,220 star)
PR 合并指标
 (平均合并 1天 21小时) (30 天内合并 100 个 PR)

描述

Both httpclient from Apache and OkHttp (which are instrumented by micrometer: OkHttpMetricsEventListener and https://github.com/micrometer-metrics/micrometer/issues/533) support provider driven caching (based on http headers)

It would be helpful (for the sake of completeness) for micrometer to provide insight to the state of caches (size, maxSize, hit and misses).

I've drafted a cache metrics for OkHttp which I'd like to get feedback ok: https://github.com/micrometer-metrics/micrometer/compare/master...kubamarchwicki:httpclient-cache-metrics. If that's something interesting, I'd hapilly finalize both OkHttp as well as httpclient.

贡献者指南