Raise an error when calling an unimplemented db metric operation
What does this MR do and why?
Related to #332553 (closed)
Add a check for database instrumented classes so we can use only implemented operations.
Raise error if an incorrect operation is used.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
- Add a new database instrumentation metric class, following the implementation guide.
- Set the
operation
of the new class to a symbol not listed on our list of supported db metrics operations - The specs for given class should fail, raising the
UnimplementedOperationError
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Michał Wielich