Class: Appsignal::Transaction::Formatter

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

Instance Method Summary collapse

Instance Method Details

#hashObject



6
7
8
# File 'lib/appsignal/transaction/formatter.rb', line 6

def hash
  @hash ||= default_hash
end

#to_hashObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/appsignal/transaction/formatter.rb', line 10

def to_hash
  merge_process_action_event_with_log_entry! if process_action_event
  add_queue_duration_to_hash!
  if exception?
    add_exception_to_hash!
    add_tags_to_hash!
  end
  add_events_to_hash! if slow_request?
  hash
end