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

Client labels or custom attributes #1483

Open
yeqown opened this issue Dec 6, 2023 · 2 comments
Open

Client labels or custom attributes #1483

yeqown opened this issue Dec 6, 2023 · 2 comments
Labels
proposal Enhancement idea or proposal

Comments

@yeqown
Copy link

yeqown commented Dec 6, 2023

Proposed change

  1. The client takes labels or attributes fields that are defined by the developer while connecting to the nats-server
  2. Nats-Server renders these properties in the monitor server endpoint "/connz"

Use case

Identify the client who takes differences in version or deploys environment, I cannot manage them since they are almost the same in the '/connz' endpoint. Of course, I can add metadata in the name, but it's not graceful and reliable.

By the way, I found 'tags' keyword in GenericFields it included by JWT Claims, I have no idea about the usage of this field.

Contribution

No response

@yeqown yeqown added the proposal Enhancement idea or proposal label Dec 6, 2023
@ripienaar
Copy link
Contributor

You can set Connection Name

https://docs.nats.io/using-nats/developer/connecting/name

@yeqown
Copy link
Author

yeqown commented Dec 7, 2023

You can set Connection Name

https://docs.nats.io/using-nats/developer/connecting/name

I know that, but it seems working with a latent rule in the case, and if I put too many external attributes in it, it looks so long that readability disappears.

Anyway, my purpose can be achieved by bypassing this feature, but I truly think, it's useful while developer want to manage their NATs connections.

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

No branches or pull requests

2 participants