Method: Sentry::TransactionEvent#to_hash

Defined in:
lib/sentry/transaction_event.rb

#to_hashHash

Returns:

  • (Hash)
[View source]

51
52
53
54
55
56
57
58
# File 'lib/sentry/transaction_event.rb', line 51

def to_hash
  data = super
  data[:spans] = @spans.map(&:to_hash) if @spans
  data[:start_timestamp] = @start_timestamp
  data[:measurements] = @measurements
  data[:_metrics_summary] = @metrics_summary if @metrics_summary
  data
end