diff --git a/lib/ecto/adapters/sql.ex b/lib/ecto/adapters/sql.ex index 68604e47..e7631b8a 100644 --- a/lib/ecto/adapters/sql.ex +++ b/lib/ecto/adapters/sql.ex @@ -890,7 +890,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,