module Instana::Instrumentation::RestClientRequest
Public Instance Methods
execute(&block)
click to toggle source
Calls superclass method
# File lib/instana/instrumentation/rest-client.rb, line 7 def execute(&block) # Since RestClient uses net/http under the covers, we just # provide span visibility here. HTTP related KVs are reported # in the Net::HTTP instrumentation ::Instana.tracer.log_entry(:'rest-client') super(&block) rescue => e ::Instana.tracer.log_error(e) raise ensure ::Instana.tracer.log_exit(:'rest-client') end