Skip to content

Commit

Permalink
Check that Sinatra::Base is in scope before instrumentating
Browse files Browse the repository at this point in the history
  • Loading branch information
hmadison committed Mar 29, 2022
1 parent f6fb1b1 commit 623cd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instana/activators/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Instana
module Activators
class Sinatra < Activator
def can_instrument?
defined?(::Instana::Rack) && defined?(::Sinatra)
defined?(::Instana::Rack) && defined?(::Sinatra) && defined?(::Sinatra::Base)
end

def instrument
Expand Down

0 comments on commit 623cd38

Please sign in to comment.