Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/prometheus_exporter/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def default_labels(env, result)
action = controller = nil
if controller_instance
action = controller_instance.action_name
controller = controller_instance.controller_name
controller = controller_instance.controller_path
elsif (cors = env["rack.cors"]) && cors.respond_to?(:preflight?) && cors.preflight?
# if the Rack CORS Middleware identifies the request as a preflight request,
# the stack doesn't get to the point where controllers/actions are defined
Expand Down