ZhengweiZhu commented on PR #2899:
URL: https://github.com/apache/brpc/pull/2899#issuecomment-2677363702

   > This PR is similar to #2870, which one is better?
   The #2870 introduced a std::set container to remove duplicates, which is 
unnecessary and impacts performance. As the metrics are stored in 
butil::FlatMap and the uniqueness of metric name is guaranteed.
   
   When we just expose bvar, the current upstream code is fine. The problem 
arises from the introduction of mvar, where one metric name will correspond to 
multiple metric with different labels. My patch handles this problem and follow 
the specifition of Prometheus metric.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to