[ 
https://issues.apache.org/jira/browse/CASSPYTHON-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18104225#comment-18104225
 ] 

Bret McGuire commented on CASSPYTHON-29:
----------------------------------------

After thinking about this for a bit I wonder if maybe you were after something 
a little more broad [~swsekar].  The goal of this ticket _could_ be to create 
an interface which allows for the passing of _arbitrary_ key/value pairs when 
attempting to connect a session (with APPLICATION_NAME and APPLICATION_VERSION 
just offered as examples).  That would certainly be something we could talk 
about.... I don't know how often it would be used but (as mentioned above) the 
spec does allow for arbitrary key/value pairs to be included in the STARTUP 
message so (at least in theory) the driver(s) could expose this functionality 
as well.  We don't have broad support for this idea but it absolutely could be 
added.

> Send `APPLICATION_NAME` and `APPLICATION_VERSION` in the STARTUP message
> ------------------------------------------------------------------------
>
>                 Key: CASSPYTHON-29
>                 URL: https://issues.apache.org/jira/browse/CASSPYTHON-29
>             Project: Apache Cassandra Python driver
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Swathi Sekar
>            Assignee: Swathi Sekar
>            Priority: Normal
>
> *Summary*
> The driver should send the client's application name and version as 
> `APPLICATION_NAME` /
> `APPLICATION_VERSION` options in the STARTUP message.
> This brings the Python driver in line with the C++ driver (since 2.11.0, via
> `cass_cluster_set_application_name()` / 
> `cass_cluster_set_application_version()`) and the Java
> driver (since 4.4.0, via `SessionBuilder.withApplicationName` / 
> `withApplicationVersion`).
> *More info*
> `Cluster` already accepts `application_name`, `application_version` but they 
> are
> documented as Insights-only and are consumed solely by
> `cassandra/datastax/insights/reporter.py`. They are never sent over the 
> native protocol.
> This change would add them to the STARTUP options map.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to