Sha256: 526bfde6ac185c7922c7618132822804cad0526316429aec04ed227128fafd02
Contents?: true
Size: 497 Bytes
Versions: 64
Compression:
Stored size: 497 Bytes
Contents
# (c) Copyright IBM Corp. 2021 # (c) Copyright Instana Inc. 2021 module Instana module Activators class Graphql < Activator def can_instrument? defined?(::GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && Instana.config[:graphql][:enabled] end def instrument require 'instana/instrumentation/graphql' ::GraphQL::Schema.use(::Instana::Instrumentation::GraphqlTracing) true end end end end
Version data entries
64 entries across 64 versions & 1 rubygems