← Changelog

Add support for Ecto parallel preloads

Jan 25, 2024
Elixir2.8.2

Replacing use Ecto.Repo with use Appsignal.Ecto.Repo allows the Ecto instrumentation to keep context across the Elixir processes spawned by Ecto preload queries, ensuring that these queries are correctly instrumented:

Elixir
defmodule MyApp.Repo do
  # replace `use Ecto.Repo` with `use Appsignal.Ecto.Repo`
  use Appsignal.Ecto.Repo,
    otp_app: :my_app,
    adapter: Ecto.Adapters.Postgres
end

See the changelog for AppSignal for Elixir package 2.8.2 for more information.

$appsignal install

Make your next crash make sense.

Free for 30 days. No credit card. Two-minute install.