Skip to content

Commit

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

[
endpoint_info(metric_prefix, opts)
Expand Down

0 comments on commit 412b7e9

Please sign in to comment.