Hi Sagar,

Thanks for the KIP!

I’m not at my computer right now, but I think I confronted a similar problem a 
while back for the Streams metrics. I think that I already made the “addMetric” 
method to be idempotent, so if it’s already registered, the call just returns 
the old one instead of creating a new one. That way, you no longer have to 
check up front if the metric is registered. I think that is also motivation for 
this KIP, right?

Thanks,
John

On Tue, May 24, 2022, at 06:48, Sagar wrote:
> Hi All,
>
> I would like to open a voting thread for the following KIP:
>
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-843%3A+Adding+metricOrElseCreate+method+to+Metrics
>
> Thanks!
> Sagar.

Reply via email to