Module: GraphQL::FragmentCache::Schema::Instrumentation::Tracer
- Defined in:
- lib/graphql/fragment_cache/schema/instrumentation.rb
Overview
Instrumentations were deprecated in 2.2.5, this is a module to migrate to new interface
Instance Method Summary collapse
Instance Method Details
#execute_multiplex(multiplex:) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/graphql/fragment_cache/schema/instrumentation.rb', line 35 def execute_multiplex(multiplex:) result = super multiplex.queries.each do |query| GraphQL::FragmentCache::Schema::Instrumentation.after_query(query) end result end |
#execute_query(query:) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/graphql/fragment_cache/schema/instrumentation.rb', line 28 def execute_query(query:) result = super ensure GraphQL::FragmentCache::Schema::Instrumentation.after_query(query) result end |