Skip to content

Commit

Permalink
Pass along new polling_opts (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
benonymus committed Sep 19, 2024
1 parent 635491d commit 0eec6cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/prom_ex/plugins/oban.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ if Code.ensure_loaded?(Oban) do

oban_supervisors = get_oban_supervisors(opts)

polling_opts = Keyword.get(opts, :opts, [])

# Queue length details
Polling.build(
:oban_queue_poll_metrics,
Expand All @@ -110,7 +112,8 @@ if Code.ensure_loaded?(Oban) do
measurement: :count,
tags: [:name, :queue, :state]
)
]
],
polling_opts
)
end

Expand Down

0 comments on commit 0eec6cb

Please sign in to comment.