Class: Sentry::TransactionEvent
- Defined in:
- lib/sentry/transaction_event.rb
Constant Summary collapse
- ATTRIBUTES =
i( event_id level release environment server_name modules user contexts extra transaction platform sdk type )
Constants inherited from Event
Event::MAX_MESSAGE_SIZE_IN_BYTES
Instance Attribute Summary collapse
-
#spans ⇒ Object
Returns the value of attribute spans.
Attributes inherited from Event
#configuration, #exception, #request, #threads
Instance Method Summary collapse
Methods inherited from Event
#add_exception_interface, #add_request_interface, #add_threads_interface, get_log_message, get_message_from_exception, #initialize, #level=, #rack_env=, #timestamp=, #to_json_compatible
Constructor Details
This class inherits a constructor from Sentry::Event
Instance Attribute Details
#spans ⇒ Object
Returns the value of attribute spans.
13 14 15 |
# File 'lib/sentry/transaction_event.rb', line 13 def spans @spans end |
Instance Method Details
#start_timestamp=(time) ⇒ Object
15 16 17 |
# File 'lib/sentry/transaction_event.rb', line 15 def (time) = time.is_a?(Time) ? time.to_f : time end |
#to_hash ⇒ Object
23 24 25 26 27 |
# File 'lib/sentry/transaction_event.rb', line 23 def to_hash data = super data[:spans] = @spans.map(&:to_hash) if @spans data end |
#type ⇒ Object
19 20 21 |
# File 'lib/sentry/transaction_event.rb', line 19 def type "transaction" end |