Module: Datadog::AppSec::Contrib::GraphQL::Patcher
- Defined in:
- lib/datadog/appsec/contrib/graphql/patcher.rb
Overview
Patcher for AppSec on GraphQL
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
23 24 25 26 27 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 23 def self.patch Gateway::Watcher.watch ::GraphQL::Schema.trace_with(AppSecTrace) Patcher.instance_variable_set(:@patched, true) end |
.patched? ⇒ Boolean
15 16 17 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 15 def self.patched? Patcher.instance_variable_get(:@patched) end |
.target_version ⇒ Object
19 20 21 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 19 def self.target_version Integration.version end |