Fix oban tags

This commit is contained in:
Tim Buchwaldt 2022-11-12 11:54:35 +01:00 committed by FloatingGhost
parent a06bb694c1
commit f8d3383179

View file

@ -75,7 +75,8 @@ defmodule Pleroma.Web.Telemetry do
"oban.job.stop",
event_name: [:oban, :job, :stop],
measurement: :duration,
tags: [:job],
tags: [:worker],
tag_values: fn tags -> Map.put(tags, :worker, tags.job.worker) end,
unit: {:native, :second},
reporter_options: [
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]