Method: Datadog::DI::Probe#location

Defined in:
lib/datadog/di/probe.rb

#locationObject

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.

Source code location of the probe, for diagnostic reporting.



174
175
176
177
178
179
180
181
182
183
184
# File 'lib/datadog/di/probe.rb', line 174

def location
  if method?
    "#{type_name}.#{method_name}"
  elsif line?
    "#{file}:#{line_no}"
  else
    # This case should not be possible because constructor verifies that
    # the probe is a method or a line probe.
    raise NotImplementedError
  end
end