Class: StackifyRubyAPM::Error Private

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

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
# 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

#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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

def log
  @log
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.



23
24
25
# File 'lib/stackify_apm/error.rb', line 23

def timestamp
  @timestamp
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.



22
23
24
# File 'lib/stackify_apm/error.rb', line 22

def transaction_id
  @transaction_id
end