Skip to content

Commit 412b7e9

Browse files
committed
Fixing event prefix in Phoenix plugin
1 parent c7663f4 commit 412b7e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prom_ex/plugins/phoenix.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if Code.ensure_loaded?(Phoenix) do
168168
@impl true
169169
def manual_metrics(opts) do
170170
otp_app = Keyword.fetch!(opts, :otp_app)
171-
metric_prefix = PromEx.metric_prefix(otp_app, :phoenix)
171+
metric_prefix = Keyword.get(opts, :metric_prefix, PromEx.metric_prefix(otp_app, :phoenix))
172172

173173
[
174174
endpoint_info(metric_prefix, opts)

0 commit comments

Comments
 (0)