Skip to content

Commit

Permalink
RUBY-1607 Fix newrelic_ignore to work with mustermann routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwear committed Dec 2, 2016
1 parent 872cfb8 commit 35e0f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/agent/instrumentation/sinatra/ignorer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def set_newrelic_ignore(type, *routes)
settings.newrelic_ignores[type] += routes.map do |r|
# Ugly sending to private Base#compile, but we want to mimic
# exactly Sinatra's mapping of route text to regex
send(:compile, r).first
Array(send(:compile, r)).first
end
end

Expand Down

0 comments on commit 35e0f69

Please sign in to comment.