Skip to content

Commit 60788b8

Browse files
committed
Fixing Broadway metric prefix
1 parent 412b7e9 commit 60788b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prom_ex/plugins/broadway.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if Code.ensure_loaded?(Broadway) do
7979
@impl true
8080
def event_metrics(opts) do
8181
otp_app = Keyword.fetch!(opts, :otp_app)
82-
metric_prefix = PromEx.metric_prefix(otp_app, :broadway)
82+
metric_prefix = Keyword.get(opts, :metric_prefix, PromEx.metric_prefix(otp_app, :broadway))
8383

8484
# Telemetry metrics will emit warnings if multiple handlers with the same names are defined.
8585
# As a result, this plugin supports gathering metrics on multiple processors and batches, but needs

0 commit comments

Comments
 (0)