lib/instana/instrumentation/rest-client.rb in instana-1.0.2 vs lib/instana/instrumentation/rest-client.rb in instana-1.0.3

- old
+ new

@@ -26,9 +26,9 @@ end end end -if defined?(::RestClient::Request) +if defined?(::RestClient::Request) && ::Instana.config[:'rest-client'][:enabled] ::Instana.logger.warn "Instrumenting RestClient" ::RestClient::Request.send(:include, ::Instana::Instrumentation::RestClientRequest) end