micrometer-metrics/micrometer

Cache metrics for http clients

開放

#1,700 建立於 2019年11月11日

 (2 則留言) (2 個反應) (0 位負責人)Java (1,135 個分叉)batch import
enhancementhelp wantedwaiting for feedback

倉庫指標

星標
 (4,881 顆星)
PR 合併指標
 (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.

貢獻者指南