Logging slow Ecto queries: adventures in metaprogramming
Slow database queries are a regular thorn in my side.
Here’s a walkthru of how I log slow queries - including the backtrace to the caller - via metaprogramming.
Read next ExPlay - Google Play API in Elixir