lib/datadog/appsec/contrib/rack/patcher.rb in ddtrace-1.9.0 vs lib/datadog/appsec/contrib/rack/patcher.rb in ddtrace-1.10.0
- old
+ new
@@ -1,8 +1,7 @@
-# typed: ignore
-
require_relative '../patcher'
+require_relative '../../monitor'
require_relative 'gateway/watcher'
module Datadog
module AppSec
module Contrib
@@ -20,9 +19,10 @@
def target_version
Integration.version
end
def patch
+ Monitor::Gateway::Watcher.watch
Gateway::Watcher.watch
Patcher.instance_variable_set(:@patched, true)
end
end
end