Fix query analyzers base context / suppress keys
What does this MR do and why?
This merge request fixes a bug in SQL query analyzers base class that was preventing us from adding new analyzer. Previously an analyzer Thread.current
key was set to Class_context
/ Class_suppressed
as calling self.class.name
in a class method returns Class
.
This bug was making it impossible to add a new query analyzer since the same context key would be used.
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 Grzegorz Bizon