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

Open wprzytula opened 1 month ago

wprzytula commented 1 month 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 1 month 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.