CNDB-8641: Add a metric to count all request errors
What is the issue
https://github.com/riptano/cndb/issues/8641
What does this PR fix and why was it fixed
This pull request introduces new metrics for tracking invalid and other error requests for CQL statements, and integrates these metrics into the query failure notification logic. The main changes are the addition of the AllRequestsMetrics class, updates to the ClientRequestsMetrics class to include these new metrics, and modifications to the query event notification methods to record errors using the new metrics.
Checklist before you submit for review
- [ ] This PR adheres to the Definition of Done
- [x] Make sure there is a PR in the CNDB project updating the Converged Cassandra version
- [x] Use
NoSpamLoggerfor log lines that may appear frequently in the logs - [x] Verify test results on Butler
- [x] Test coverage for new/modified code is > 80%
- [x] Proper code formatting
- [x] Proper title for each commit staring with the project-issue number, like CNDB-1234
- [x] Each commit has a meaningful description
- [x] Each commit is not very long and contains related changes
- [x] Renames, moves and reformatting are in distinct commits
- [x] All new files should contain the DataStax copyright header instead of the Apache License one
Yes. Tests are on the TODO. I just wanted to be sure that it's going in the right direction (so much for TDD...)
@JeremiahDJordan I added some tests.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
86.5% Coverage on New Code
0.0% Duplication on New Code
:heavy_check_mark: Build ds-cassandra-pr-gate/PR-1983 approved by Butler
Approved by Butler See build details here