Skip to content

Commit

Permalink
Fixing Broadway metric prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
akoutmos committed Mar 1, 2022
1 parent 412b7e9 commit 60788b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prom_ex/plugins/broadway.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if Code.ensure_loaded?(Broadway) do
@impl true
def event_metrics(opts) do
otp_app = Keyword.fetch!(opts, :otp_app)
metric_prefix = PromEx.metric_prefix(otp_app, :broadway)
metric_prefix = Keyword.get(opts, :metric_prefix, PromEx.metric_prefix(otp_app, :broadway))

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

0 comments on commit 60788b8

Please sign in to comment.