Fix oban tags
This commit is contained in:
parent
a06bb694c1
commit
f8d3383179
|
@ -75,7 +75,8 @@ def metrics do
|
||||||
"oban.job.stop",
|
"oban.job.stop",
|
||||||
event_name: [:oban, :job, :stop],
|
event_name: [:oban, :job, :stop],
|
||||||
measurement: :duration,
|
measurement: :duration,
|
||||||
tags: [:job],
|
tags: [:worker],
|
||||||
|
tag_values: fn tags -> Map.put(tags, :worker, tags.job.worker) end,
|
||||||
unit: {:native, :second},
|
unit: {:native, :second},
|
||||||
reporter_options: [
|
reporter_options: [
|
||||||
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
|
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
|
||||||
|
|
Loading…
Reference in a new issue