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
1 changed files with 2 additions and 1 deletions

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]