You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/14 12:15:03 UTC

[GitHub] [pulsar-client-go] WinChua opened a new issue #724: Add PhysicalAddr() method to interface Producer and Consumer for client-side metric report?

WinChua opened a new issue #724:
URL: https://github.com/apache/pulsar-client-go/issues/724


   **Is your feature request related to a problem? Please describe.**
   No 
   
   **Describe the solution you'd like**
   Add method PhysicalAddr() to interface [Producer](https://github.com/apache/pulsar-client-go/blob/master/pulsar/producer.go#L174) and interface [Consumer](https://github.com/apache/pulsar-client-go/blob/master/pulsar/consumer.go#L188) which exposes the broker address to which the producer or consumer connect to.
   
   From the client view, we need to report some metrics such as time-cost, return code and so on everytime we send or consume a msg. It's neccesary to distinguish such metrics among difference brokers for a better observation. While there is no way for the user to obtain the address of the broker connected to, now.
   
   So I think it's useful to add PhysicalAddr() to Producer and Consumer interface.
   


-- 
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: commits-unsubscribe@pulsar.apache.org

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