Class: Datadog::DI::Instrumenter::Location Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/datadog/di/instrumenter.rb

Overview

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.

This is a substitute for Thread::Backtrace::Location which does not have a public constructor. Used for the fabricated stack frame for the method itself for method probes (which use Module#prepend and thus aren’t called from the method but from outside of the method).

Instance Attribute Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



78
79
80
# File 'lib/datadog/di/instrumenter.rb', line 78

def label
  @label
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



78
79
80
# File 'lib/datadog/di/instrumenter.rb', line 78

def lineno
  @lineno
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



78
79
80
# File 'lib/datadog/di/instrumenter.rb', line 78

def path
  @path
end