8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/newrelic_security/instrumentation-security/httpclient/instrumentation.rb', line 8
def do_request_on_enter(method, uri, query, body, )
event = nil
NewRelic::Security::Agent.logger.debug "OnEnter : #{self.class}.#{__method__}"
uri_s = uri.to_s unless uri.nil?
event = NewRelic::Security::Agent::Control::Collector.collect(HTTP_REQUEST, [uri_s])
NewRelic::Security::Instrumentation::InstrumentationUtils.add_tracing_data(, event) if event
event
rescue => exception
NewRelic::Security::Agent.logger.error "Exception in hook in #{self.class}.#{__method__}, #{exception.inspect}, #{exception.backtrace}"
ensure
yield
return event
end
|