Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE-724: Add PhysicalAddr() method to interface Producer and Consumer for client-side metric report? #259

Open
sijie opened this issue Feb 14, 2022 · 0 comments

Comments

@sijie
Copy link
Member

sijie commented Feb 14, 2022

Original Issue: apache#724


Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
Add method PhysicalAddr() to interface Producer and interface Consumer 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant