lib/ddtrace/contrib/sequel/patcher.rb in ddtrace-0.29.1 vs lib/ddtrace/contrib/sequel/patcher.rb in ddtrace-0.30.0
- old
+ new
@@ -9,22 +9,16 @@
module Patcher
include Contrib::Patcher
module_function
- def patched?
- done?(:sequel)
+ def target_version
+ Integration.version
end
def patch
- do_once(:sequel) do
- begin
- patch_sequel_database
- patch_sequel_dataset
- rescue StandardError => e
- Datadog::Tracer.log.error("Unable to apply Sequel integration: #{e}")
- end
- end
+ patch_sequel_database
+ patch_sequel_dataset
end
def patch_sequel_database
::Sequel::Database.send(:include, Database)
end