-
Notifications
You must be signed in to change notification settings - Fork 173
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
Hard to debug slow consumers with Rust client #1261
Comments
On a similar note I have a pool of connections to NATS, I have no idea what connection it belongs to either. Just like I have no idea what connections correspond to messages like this:
Or how to map them to applications and connections with logs like this:
|
Adding the subject does not solve the problem in its entirety, as you might have many subscription for it. One of the solutions is to add We are discussing if we can address it on more cross-library general level with solution like above. |
Agree, but it does narrow down things significantly.
Does seem to be the most accurate indeed.
Nice, anything that helps matching connections/subscriptions with logs on both library and NATS server level will be highly appreciated. I recall I was able to specify client name in NATS streaming a few years ago in TypeScript, but situation seems to be significantly different here with clients seemingly identified by CID. |
Proposed change
sid
generated by subscription doesn't seem to be exposed anywhere publicly. Without it debugging things like this is very hard:It would be more helpful if it was printing subscription subject or something, but sid generated internally that is not possible to access (except using
std::fmt::Debug
that will print it along with all other things).Use case
Debugging slow consumers and general logging
Contribution
No response
The text was updated successfully, but these errors were encountered: