Module: Yabeda::GraphQL

Defined in:
lib/yabeda/graphql.rb,
lib/yabeda/graphql/version.rb,
lib/yabeda/graphql/yabeda_tracing.rb,
lib/yabeda/graphql/instrumentation.rb

Defined Under Namespace

Classes: Error, Instrumentation, YabedaTracing

Constant Summary collapse

REQUEST_BUCKETS =
[
  0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10,
].freeze
VERSION =
"0.2.3"

Class Method Summary collapse

Class Method Details

.use(schema) ⇒ Object



32
33
34
35
# File 'lib/yabeda/graphql.rb', line 32

def self.use(schema)
  schema.instrument(:query, Instrumentation.new)
  schema.use YabedaTracing, trace_scalars: true
end