As suggested in https://github.com/apache/cassandra-gocql-driver/issues/1786, this PR introduces a QueryAttemptInterceptor interface for intercepting query attempts, which allows clients to inject logic that should apply to all queries e.g. context manipulation, rate limiting, query modification, logging, fault injection, metrics, etc.
As suggested in https://github.com/apache/cassandra-gocql-driver/issues/1786, this PR introduces a
QueryAttemptInterceptor
interface for intercepting query attempts, which allows clients to inject logic that should apply to all queries e.g. context manipulation, rate limiting, query modification, logging, fault injection, metrics, etc.Alternative to https://github.com/apache/cassandra-gocql-driver/pull/1810.