Reduce resolution of oban_met metrics

This commit is contained in:
Claudio Ortolina
2026-02-19 13:37:53 +00:00
parent 1ced8b833d
commit e1aa1d371c
+8
View File
@@ -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