Module: Anyway::Tracing

Defined in:
lib/pact_broker/config/runtime_configuration.rb

Class Method Summary collapse

Class Method Details

.current_trace_sourceObject

Override this method so that we get the real caller location, not the forwardable one from the ‘extend Forwardable` in the PactBroker::Configuration class.



16
17
18
# File 'lib/pact_broker/config/runtime_configuration.rb', line 16

def current_trace_source
  source_stack.last || accessor_source(caller_locations(2, 2).find { | location | !location.path.end_with?("forwardable.rb") })
end