Class: ElasticAPM::Error Private
- Inherits:
-
Object
- Object
- ElasticAPM::Error
- Defined in:
- lib/elastic_apm/error.rb,
lib/elastic_apm/error/log.rb,
lib/elastic_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
- #parent_id ⇒ Object private
- #timestamp ⇒ Object readonly private
- #trace_id ⇒ Object private
- #transaction ⇒ Object 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 21 22 |
# File 'lib/elastic_apm/error.rb', line 11 def initialize(culprit: nil) @id = SecureRandom.hex(16) @trace_id = nil @culprit = culprit = Util.micros @context = Context.new @transaction_id = nil @transaction = nil @parent_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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 def log @log end |
#parent_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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 def parent_id @parent_id 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.
26 27 28 |
# File 'lib/elastic_apm/error.rb', line 26 def end |
#trace_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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 def trace_id @trace_id end |
#transaction ⇒ 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 def transaction @transaction 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.
24 25 26 |
# File 'lib/elastic_apm/error.rb', line 24 def transaction_id @transaction_id end |