Module: Datadog::Tracing::Contrib::GraphQL::TracePatcher
- Defined in:
- lib/datadog/tracing/contrib/graphql/trace_patcher.rb
Overview
Provides instrumentation for ‘graphql` through with GraphQL’s trace
Class Method Summary collapse
Class Method Details
.patch!(schemas) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/datadog/tracing/contrib/graphql/trace_patcher.rb', line 11 def patch!(schemas) if schemas.empty? ::GraphQL::Schema.trace_with(::GraphQL::Tracing::DataDogTrace) else schemas.each do |schema| schema.trace_with(::GraphQL::Tracing::DataDogTrace) end end end |