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.

[View source]

143
144
145
146
147
148
149
150
151
152
153
# File 'lib/datadog/di/probe.rb', line 143

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