-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: adding user agent string to client #296
Conversation
My initial thought was to put it in the |
I've added it to the nsqadmin channels section. What should the default user agent be if one isn't passed. In other words, what should the NSQd client struct set as the default UserAgent to maintain backwards compatibility with clients that don't pass one? |
it should just be an empty string, and |
@@ -201,7 +201,7 @@ func init() { | |||
{{range .ChannelStats.Clients}} | |||
<tr> | |||
<td>{{.ClientIdentifier}}</td> | |||
<td>{{.ClientVersion}}</td> | |||
<td>{{.ClientVersion}} ({{.ClientUserAgent}})</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also be added to node.html.go
in the client table
green light 👍 - thanks for adding a test |
nsqd: adding user agent string to client
Adding user_agent string for client
IDENTIFY
. fixes #189. This is now exposed to nsqadmin.Where was the plan for this to go in nsqadmin? The channel screen is already pretty busy with the addition of client attributes. Even though there is a node screen for NSQd nodes, there is no client screen where you can break down what an individual client is doing. Thoughts on that? Anything else in mind?