Method: GraphQL::Schema#instrument
- Defined in:
- lib/graphql/schema.rb
#instrument(instrumentation_type, instrumenter) ⇒ void
This method returns an undefined value.
Attach instrumenter to this schema for instrumenting events of instrumentation_type.
218 219 220 221 222 223 |
# File 'lib/graphql/schema.rb', line 218 def instrument(instrumentation_type, instrumenter) @instrumenters[instrumentation_type] << instrumenter if instrumentation_type == :field rebuild_artifacts end end |