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

nsqd: adding user agent string to client #296

Merged
merged 5 commits into from
Jan 27, 2014

Conversation

elubow
Copy link
Contributor

@elubow elubow commented Jan 26, 2014

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?

@mreiferson
Copy link
Member

My initial thought was to put it in the Protocol column.... ie V2 (<UserAgent>)

@elubow
Copy link
Contributor Author

elubow commented Jan 26, 2014

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?

@mreiferson
Copy link
Member

it should just be an empty string, and nsqadmin should not display anything next to the protocol version

@@ -201,7 +201,7 @@ func init() {
{{range .ChannelStats.Clients}}
<tr>
<td>{{.ClientIdentifier}}</td>
<td>{{.ClientVersion}}</td>
<td>{{.ClientVersion}} ({{.ClientUserAgent}})</td>
Copy link
Member

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

@mreiferson
Copy link
Member

green light 👍 - thanks for adding a test

mreiferson added a commit that referenced this pull request Jan 27, 2014
nsqd: adding user agent string to client
@mreiferson mreiferson merged commit 3033e12 into nsqio:master Jan 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nsqd: support client "user agent"
2 participants