lib/graphql/tracing/platform_tracing.rb in graphql-1.11.10 vs lib/graphql/tracing/platform_tracing.rb in graphql-1.12.0
- old
+ new
@@ -94,10 +94,12 @@
new_f
end
def self.use(schema_defn, options = {})
tracer = self.new(**options)
- schema_defn.instrument(:field, tracer)
+ if !schema_defn.is_a?(Class)
+ schema_defn.instrument(:field, tracer)
+ end
schema_defn.tracer(tracer)
end
private