lib/ting_yun/instrumentation/net.rb in tingyun_rpm-1.0.7 vs lib/ting_yun/instrumentation/net.rb in tingyun_rpm-1.1.0
- old
+ new
@@ -36,10 +36,11 @@
begin
get_response_without_tingyun(uri_or_host, path = nil, port = nil, &block)
rescue => e
klass = "External/#{uri_or_host.to_s.gsub('/','%2F')}/net%2Fhttp"
::TingYun::Instrumentation::Support::ExternalError.handle_error(e,klass)
+ raise e
end
end
alias get_response_without_tingyun get_response
alias get_response get_response_with_tingyun
@@ -47,9 +48,10 @@
begin
start_without_tingyun(address, *arg, &block)
rescue => e
klass = "External/#{address.to_s.gsub('/','%2F')}/net%2Fhttp"
::TingYun::Instrumentation::Support::ExternalError.handle_error(e,klass)
+ raise e
end
end
alias :start_without_tingyun :start
alias :start :start_with_tingyun
end
\ No newline at end of file