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

Add bolt 5.4 support (telemetry) #12

Merged
merged 8 commits into from
Apr 13, 2024
Merged

Add bolt 5.4 support (telemetry) #12

merged 8 commits into from
Apr 13, 2024

Conversation

robsdedude
Copy link
Owner

Starting with Bolt 5.4, the driver will, by default, send anonymous API usage statistics to the server if requested.

An opt-out is available through DriverConfig::with_telemetry:

let driver = Driver::new(
    connection_config,
    DriverConfig::new().with_telemetry(false),
);

If the server requests is, the driver will send anonymous API usage. Currently, everytime one of the following APIs is used to execute a query (for the first time), the server is informed of this (without any further information like arguments, client identifiers, etc.):

  • ExecuteQueryBuilder::run() / ExecuteQueryBuilder::run_with_retry()
  • TransactionBuilder::run()
  • TransactionBuilder::run_with_retry()
  • AutoCommitBuilder::run()

Starting with Bolt 5.4, the driver will, by default, send anonymous API usage
statistics to the server if requested.

An opt-out is available through `DriverConfig::with_telemetry`:

```rust
let driver = Driver::new(
    connection_config,
    DriverConfig::new().with_telemetry(false),
);
```

If the server requests is, the driver will send anonymous API usage.
Currently, everytime one of the following APIs is used to execute a query
(for the first time), the server is informed of this
(without any further information like arguments, client identifiers, etc.):

 * `ExecuteQueryBuilder::run()` / `ExecuteQueryBuilder::run_with_retry()`
 * `TransactionBuilder::run()`
 * `TransactionBuilder::run_with_retry()`
 * `AutoCommitBuilder::run()`
@robsdedude robsdedude merged commit ea9e58b into master Apr 13, 2024
13 checks passed
@robsdedude robsdedude deleted the feat/bolt-5.4 branch April 13, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant