diff --git a/lib/ecto/adapters/sql.ex b/lib/ecto/adapters/sql.ex index a0dbed35..f7a557c6 100644 --- a/lib/ecto/adapters/sql.ex +++ b/lib/ecto/adapters/sql.ex @@ -895,7 +895,7 @@ defmodule Ecto.Adapters.SQL do {name, config} = Keyword.pop(config, :name, config[:repo]) {pool_count, config} = Keyword.pop(config, :pool_count, 1) {pool, config} = pool_config(config) - child_spec = connection.child_spec(config) + child_spec = connection.child_spec([label: name] ++ config) meta = %{ telemetry: telemetry,