From 361a464c334be6535ca576c422b2f39ca39ef383 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 26 Sep 2025 16:23:54 +0300 Subject: [PATCH] Tag Repo metrics by source --- lib/music_library_web/telemetry.ex | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/music_library_web/telemetry.ex b/lib/music_library_web/telemetry.ex index 522a5a61..0dca6eab 100644 --- a/lib/music_library_web/telemetry.ex +++ b/lib/music_library_web/telemetry.ex @@ -29,21 +29,24 @@ defmodule MusicLibraryWeb.Telemetry do description: "The sum of the other measurements", reporter_options: [ nav: "Repo" - ] + ], + tags: [:source] ), summary("music_library.repo.query.query_time", unit: {:native, :millisecond}, description: "The time spent executing the query", reporter_options: [ nav: "Repo" - ] + ], + tags: [:source] ), summary("music_library.repo.query.queue_time", unit: {:native, :millisecond}, description: "The time spent waiting for a database connection", reporter_options: [ nav: "Repo" - ] + ], + tags: [:source] ), # Oban