Class: Appsignal::TransactionFormatter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Appsignal::TransactionFormatter
- Defined in:
- lib/appsignal/transaction/transaction_formatter.rb
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(transaction) ⇒ TransactionFormatter
constructor
A new instance of TransactionFormatter.
- #to_hash ⇒ Object
Constructor Details
#initialize(transaction) ⇒ TransactionFormatter
Returns a new instance of TransactionFormatter.
6 7 8 |
# File 'lib/appsignal/transaction/transaction_formatter.rb', line 6 def initialize(transaction) super(transaction) end |
Instance Method Details
#hash ⇒ Object
10 11 12 |
# File 'lib/appsignal/transaction/transaction_formatter.rb', line 10 def hash @hash ||= default_hash end |
#to_hash ⇒ Object
14 15 16 17 18 19 |
# File 'lib/appsignal/transaction/transaction_formatter.rb', line 14 def to_hash merge_process_action_event_with_log_entry! if process_action_event add_exception_to_hash! if exception? add_events_to_hash! if slow_request? hash end |