projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8f58eb4
)
Track oban failures
author
Tim Buchwaldt
<tim@buchwaldt.ws>
Sat, 12 Nov 2022 11:42:53 +0000
(12:42 +0100)
committer
FloatingGhost
<hannah@coffee-and-dreams.uk>
Thu, 15 Dec 2022 01:04:56 +0000
(
01:04
+0000)
lib/pleroma/web/telemetry.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/telemetry.ex
b/lib/pleroma/web/telemetry.ex
index 505ee382c69b68815bdae0b6fbc8f3ccf975a843..d9c54c28f595ec3bf8c60a8b4ce782203e148568 100644
(file)
--- a/
lib/pleroma/web/telemetry.ex
+++ b/
lib/pleroma/web/telemetry.ex
@@
-72,7
+72,7
@@
defmodule Pleroma.Web.Telemetry do
summary("vm.total_run_queue_lengths.cpu"),
summary("vm.total_run_queue_lengths.io"),
distribution(
summary("vm.total_run_queue_lengths.cpu"),
summary("vm.total_run_queue_lengths.io"),
distribution(
- "oban
.job.stop
",
+ "oban
_job_completion
",
event_name: [:oban, :job, :stop],
measurement: :duration,
tags: [:worker],
event_name: [:oban, :job, :stop],
measurement: :duration,
tags: [:worker],
@@
-81,6
+81,17
@@
defmodule Pleroma.Web.Telemetry do
reporter_options: [
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
]
reporter_options: [
buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
]
+ ),
+ distribution(
+ "oban_job_exception",
+ event_name: [:oban, :job, :exception],
+ measurement: :duration,
+ 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]
+ ]
)
]
end
)
]
end