I find the `stacktrace: true` option for my repo to be extremely helpful when working on large applications, but I was wondering if we could perhaps make it even more helpful by allowing the user to ignore certain calls in the stacktrace?
My problem is specifically with the `assign_new` from Phoenix.LiveView.Utils which wraps a large part of my database calls.
I see from the current implementation that it returns the last call before the repo call
```
defp last_non_ecto([{mod, _, _, _} | _stacktrace], repo, last)
when mod == repo or mod in @repo_modules,
do: last
defp last_non_ecto([last | stacktrace], repo, _last),
do: last_non_ecto(stacktrace, repo, last)
defp last_non_ecto([], _repo, last),
do: last
```
I tried adding this as a test:
```
defp last_non_ecto([{mod, fun, arity, _} | _stacktrace], repo, last)
when mod == repo or mod in @repo_modules or {mod, fun, arity} == {Phoenix.LiveView.Utils, :assign_new, 3},
do: last
```
and it immediately became more helpful for me.
I'm not sure of the API here, but would it be possible to allow the user to add mfas to ignore here?