Skip to content

Commit

Permalink
bugfix for inverted logic on AgentHooks.needed?
Browse files Browse the repository at this point in the history
  • Loading branch information
tannalynn committed Aug 17, 2023
1 parent 86cdeee commit 8b2b965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/new_relic/rack/agent_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module NewRelic::Rack
#
class AgentHooks < AgentMiddleware
def self.needed?
!NewRelic::Agent.config[:disable_middleware_instrumentation]
NewRelic::Agent.config[:disable_middleware_instrumentation]
end

def traced_call(env)
Expand Down

0 comments on commit 8b2b965

Please sign in to comment.