From e1aa1d371ce31a38b4fe715a0ad7c97158f01589 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 19 Feb 2026 13:37:53 +0000 Subject: [PATCH] Reduce resolution of oban_met metrics --- config/config.exs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/config.exs b/config/config.exs index 9cde3ebe..8364f3e4 100644 --- a/config/config.exs +++ b/config/config.exs @@ -112,6 +112,14 @@ config :music_library, Oban, ]} ] +# Timing metrics (execution time, queue time) are stored in space-efficient +# quantile sketches. By default, values are recorded in `:native` time units +# (nanoseconds on most systems), which provides maximum precision but uses more +# space. +# For reduced storage size (~20% smaller) and better bin consolidation, we +# configure sketches to store timing in millisecond +config :oban_met, sketch_time_unit: :millisecond + config :music_library, MusicLibrary.BackgroundRepo, priv: "priv/background_repo" config :fluxon, :translate_function, &MusicLibraryWeb.CoreComponents.translate_error/1