I am writing a backend in go for an angular application. I want to log for every request how many database queries were executed.
For this, I want to increment an integer every time sql.Exec is called. How do I do this without manually adding it to every single place I use sql.Exec? Or is there a better way to do this?