Class: StackifyRubyAPM::Error Private
- Inherits:
-
Object
- Object
- StackifyRubyAPM::Error
- Defined in:
- lib/stackify_apm/error.rb,
lib/stackify_apm/error/log.rb,
lib/stackify_apm/error/exception.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Instance Attribute Summary collapse
- #context ⇒ Object private
- #culprit ⇒ Object private
- #exception ⇒ Object private
- #id ⇒ Object private
- #log ⇒ Object private
- #timestamp ⇒ Object readonly private
- #transaction_id ⇒ Object private
Instance Method Summary collapse
-
#initialize(culprit: nil) ⇒ Error
constructor
private
A new instance of Error.
Constructor Details
#initialize(culprit: nil) ⇒ Error
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Error.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/stackify_apm/error.rb', line 11 def initialize(culprit: nil) @id = SecureRandom.uuid @culprit = culprit time_now = Time.now @timestamp = time_now.to_f * 1000 @context = Context.new @transaction_id = nil end |
Instance Attribute Details
#context ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def context @context end |
#culprit ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def culprit @culprit end |
#exception ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def exception @exception end |
#id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def id @id end |
#log ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def log @log end |
#timestamp ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/stackify_apm/error.rb', line 23 def @timestamp end |
#transaction_id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/stackify_apm/error.rb', line 22 def transaction_id @transaction_id end |