Class: ElasticAPM::Error Private

Inherits:
Object
  • Object
show all
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

Classes: Exception, Log

Instance Attribute Summary collapse

Instance Method Summary collapse

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

  @timestamp = Util.micros
  @context = Context.new

  @transaction_id = nil
  @transaction = nil
  @parent_id = nil
end

Instance Attribute Details

#contextObject

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

#culpritObject

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

#exceptionObject

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

#idObject

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

#logObject

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_idObject

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

#timestampObject (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 timestamp
  @timestamp
end

#trace_idObject

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

#transactionObject

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_idObject

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