From df579890672f763080d82b48e62582d4aa7b88b9 Mon Sep 17 00:00:00 2001 From: Nathan Long Date: Mon, 17 Nov 2025 11:05:22 -0500 Subject: [PATCH] Label the connection with the repo name See https://github.com/elixir-ecto/db_connection/pull/332 --- lib/ecto/adapters/sql.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,