class Sentry::TransactionEvent

Constants

SERIALIZEABLE_ATTRIBUTES
TYPE
WRITER_ATTRIBUTES

Attributes

spans[RW]

Public Class Methods

new(configuration:, integration_meta: nil, message: nil) click to toggle source
Calls superclass method Sentry::Event::new
# File lib/sentry/transaction_event.rb, line 21
def initialize(configuration:, integration_meta: nil, message: nil)
  super
  @type = TYPE
end

Public Instance Methods

start_timestamp=(time) click to toggle source
# File lib/sentry/transaction_event.rb, line 26
def start_timestamp=(time)
  @start_timestamp = time.is_a?(Time) ? time.to_f : time
end
to_hash() click to toggle source
Calls superclass method Sentry::Event#to_hash
# File lib/sentry/transaction_event.rb, line 30
def to_hash
  data = super
  data[:spans] = @spans.map(&:to_hash) if @spans
  data
end