Class: Appsignal::Transaction::NilTransaction

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/transaction.rb

Overview

Stub that is returned by current if there is no current transaction, so that it’s still safe to call methods on it if there is no current transaction.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(_method, *args, &block) ⇒ Object



839
840
# File 'lib/appsignal/transaction.rb', line 839

def method_missing(_method, *args, &block)
end

Instance Method Details

#instrument(*_args) ⇒ Object

Instrument should still yield



843
844
845
# File 'lib/appsignal/transaction.rb', line 843

def instrument(*_args)
  yield
end

#nil_transaction?Boolean

Returns:

  • (Boolean)


847
848
849
# File 'lib/appsignal/transaction.rb', line 847

def nil_transaction?
  true
end