Module: GraphQL::Flamegraph
- Defined in:
- lib/graphql/flamegraph.rb,
lib/graphql/flamegraph/result.rb,
lib/graphql/flamegraph/tracing.rb,
lib/graphql/flamegraph/version.rb,
lib/graphql/flamegraph/instrumentation.rb
Defined Under Namespace
Classes: Error, Instrumentation, Result, Tracing
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.use(schema, enabled: true, path: nil) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/graphql/flamegraph.rb', line 9 def self.use(schema, enabled: true, path: nil) return unless enabled schema.instrument(:query, Instrumentation.new(path: path)) schema.use Tracing, trace_scalars: true end |