Skip to content

Commit

Permalink
Merge pull request #270 from instana/hm-zd-25605
Browse files Browse the repository at this point in the history
Check that Sinatra::Base is in scope before instrumentating
  • Loading branch information
hmadison committed Mar 29, 2022
2 parents f6fb1b1 + 623cd38 commit 69cd0ed
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 69cd0ed

Please sign in to comment.