From eaee52fa591f92c97c3355abb6fe6ca8a08b1090 Mon Sep 17 00:00:00 2001 From: Max Marcon Date: Thu, 9 Jun 2022 13:49:59 +0200 Subject: [PATCH] support for missing repo config --- lib/prom_ex/plugins/ecto.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prom_ex/plugins/ecto.ex b/lib/prom_ex/plugins/ecto.ex index 9c46598b..420a0bc6 100644 --- a/lib/prom_ex/plugins/ecto.ex +++ b/lib/prom_ex/plugins/ecto.ex @@ -52,7 +52,7 @@ if Code.ensure_loaded?(Ecto) do end) |> Enum.map(fn repo -> otp_app - |> Application.get_env(repo) + |> Application.get_env(repo, []) |> Keyword.get_lazy(:telemetry_prefix, fn -> telemetry_prefix(repo) end)