Tracking down slow queries in Ecto

Fair enough on performance, and I mostly agree with what you’re saying, but I wouldn’t start there. You can get a lot of mileage just from tracing Phoenix + Ecto.

Observability is a garden, you need to tend to it. Over-instrumenting has a cost, you will either

  1. Run out of your event quota quickly
  2. Be forced to sample and lose data
  3. Spend more resources than you intended on shipping spans out of your app (same goes for logging/etc!)