Module: Datadog::AppSec::Contrib::GraphQL::Patcher
- Includes:
- 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
28 29 30 31 32 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 28 def patch Gateway::Watcher.watch ::GraphQL::Schema.trace_with(AppSecTrace) Patcher.instance_variable_set(:@patched, true) end |
.patched? ⇒ Boolean
20 21 22 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 20 def patched? Patcher.instance_variable_get(:@patched) end |
.target_version ⇒ Object
24 25 26 |
# File 'lib/datadog/appsec/contrib/graphql/patcher.rb', line 24 def target_version Integration.version end |