class Instana::Activators::Graphql
Public Instance Methods
can_instrument?()
click to toggle source
# File lib/instana/activators/graphql.rb, line 7 def can_instrument? defined?(::GraphQL::Schema) && defined?(GraphQL::Tracing::PlatformTracing) && Instana.config[:graphql][:enabled] end
instrument()
click to toggle source
# File lib/instana/activators/graphql.rb, line 13 def instrument require 'instana/instrumentation/graphql' ::GraphQL::Schema.use(::Instana::Instrumentation::GraphqlTracing) true end