Skip to content

Commit 4bd3817

Browse files
fix: get controller full path instead of controller name (#353)
1 parent 4bb4fa3 commit 4bd3817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/prometheus_exporter/middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def default_labels(env, result)
7878
action = controller = nil
7979
if controller_instance
8080
action = controller_instance.action_name
81-
controller = controller_instance.controller_name
81+
controller = controller_instance.controller_path
8282
elsif (cors = env["rack.cors"]) && cors.respond_to?(:preflight?) && cors.preflight?
8383
# if the Rack CORS Middleware identifies the request as a preflight request,
8484
# the stack doesn't get to the point where controllers/actions are defined

0 commit comments

Comments
 (0)