This blog post talks about some of the existing tools and their tradeoffs: http://mysqlentomologist.blogspot.com/2021/05/dynamic-tracin...