[
https://issues.apache.org/jira/browse/CASSANDRA-14275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16379474#comment-16379474
]
Dinesh Joshi commented on CASSANDRA-14275:
------------------------------------------
Heres a PoC -
#
https://github.com/apache/cassandra/compare/trunk...dineshjoshi:add-client-string
#
https://github.com/datastax/java-driver/compare/3.x...dineshjoshi:enhance-java-driver-to-send-metadata
This allows me to get stats like this -
{noformat}
bin/nodetool clientstats --all
Address SSL Version User Keyspace Requests Driver
/127.0.0.1:59305 false 4 anonymous 12
datastaxjavadriver-cql3.0.0-v3.0
/127.0.0.1:59306 false 4 anonymous 2
datastaxjavadriver-cql3.0.0-v3.0
Total connected clients: 2
User Connections
anonymous 2
{noformat}
> Cassandra Driver should send identification information to Server
> -----------------------------------------------------------------
>
> Key: CASSANDRA-14275
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14275
> Project: Cassandra
> Issue Type: New Feature
> Components: Core
> Reporter: Dinesh Joshi
> Assignee: Dinesh Joshi
> Priority: Major
> Fix For: 2.1.x, 2.2.x, 3.0.x, 3.11.x, 4.x
>
>
> Currently there doesn't seem to be any way to readily identify the driver
> that clients are using to connect to Cassandra. Add the capability of
> identifying the driver through metadata information much like how HTTP
> Clients identify themselves through User-Agent HTTP header. This is useful
> for debugging in large deployments where clients tend to use different
> drivers, wrappers and language bindings to connect to Cassandra. This can
> help surface issues as well as help detect clients which are using older or
> unsupported drivers.
> The identification information should be a string that unambiguously
> identifies the driver. It should include information such as the name of the
> driver, it's version, CQL version, Platform (Linux, macOS, Windows, etc.) and
> architecture (x86, x86_64).
> We should surface this information in `nodetool clientstats` command.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]