lib/graphql/tracing/platform_tracing.rb in graphql-2.2.16 vs lib/graphql/tracing/platform_tracing.rb in graphql-2.3.0
- old
+ new
@@ -84,10 +84,10 @@
warn("`use(#{self.name})` is deprecated, use the equivalent `trace_with(#{trace_module.name})` instead. More info: https://graphql-ruby.org/queries/tracing.html")
schema_defn.trace_with(trace_module, **options)
else
warn("`use(#{self.name})` and `Tracing::PlatformTracing` are deprecated. Use a `trace_with(...)` module instead. More info: https://graphql-ruby.org/queries/tracing.html. Please open an issue on the GraphQL-Ruby repo if you want to discuss further!")
tracer = self.new(**options)
- schema_defn.tracer(tracer)
+ schema_defn.tracer(tracer, silence_deprecation_warning: true)
end
end
end
private