Skip to content

Commit

Permalink
Pass along new polling_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
benonymus committed Sep 13, 2024
1 parent 6f97943 commit 56c19c4
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 56c19c4

Please sign in to comment.