Class: Errorgap::Transaction
- Inherits:
-
Struct
- Object
- Struct
- Errorgap::Transaction
- Defined in:
- lib/errorgap/transaction.rb
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
Returns the value of attribute duration_ms.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#job_class ⇒ Object
Returns the value of attribute job_class.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#method ⇒ Object
Returns the value of attribute method.
-
#occurred_at ⇒ Object
Returns the value of attribute occurred_at.
-
#path ⇒ Object
Returns the value of attribute path.
-
#path_raw ⇒ Object
Returns the value of attribute path_raw.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#spans ⇒ Object
Returns the value of attribute spans.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
Instance Attribute Details
#duration_ms ⇒ Object
Returns the value of attribute duration_ms
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def duration_ms @duration_ms end |
#environment ⇒ Object
Returns the value of attribute environment
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def environment @environment end |
#job_class ⇒ Object
Returns the value of attribute job_class
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def job_class @job_class end |
#kind ⇒ Object
Returns the value of attribute kind
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def kind @kind end |
#method ⇒ Object
Returns the value of attribute method
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def method @method end |
#occurred_at ⇒ Object
Returns the value of attribute occurred_at
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def occurred_at @occurred_at end |
#path ⇒ Object
Returns the value of attribute path
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def path @path end |
#path_raw ⇒ Object
Returns the value of attribute path_raw
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def path_raw @path_raw end |
#queue ⇒ Object
Returns the value of attribute queue
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def queue @queue end |
#spans ⇒ Object
Returns the value of attribute spans
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def spans @spans end |
#status_code ⇒ Object
Returns the value of attribute status_code
19 20 21 |
# File 'lib/errorgap/transaction.rb', line 19 def status_code @status_code end |
Instance Method Details
#to_h ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/errorgap/transaction.rb', line 25 def to_h { kind: kind, method: method, path: path, path_raw: path_raw, status_code: status_code, duration_ms: duration_ms, environment: environment, occurred_at: occurred_at&.utc&.iso8601(3), spans: Array(spans).map(&:to_h), job_class: job_class, queue: queue }.compact end |