scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

Set self-identification options in `STARTUP` frame #140

Closed wprzytula closed 2 months ago

wprzytula commented 4 months ago
  1. Rust driver sets DRIVER_NAME and DRIVER_VERSION according to its versioning, whereas we'd like to tell apart the bare Rust driver and cpp-rust-driver running on top of it.

  2. Rust driver does not set APPLICATION_NAME, APPLICATION_VERSION, CLIENT_ID. cpp-driver has API to configure them, so they should be supported as well.

This requires creating and exposing setters for all the above options in Rust driver.

wprzytula commented 4 months ago

Setting correct DRIVER_NAME and DRIVER_VERSION should be considered P0, because it's very important for us to be able to see the driver's usage by looking at our clusters.