You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like for local logging to work you need to also include an instrumenter in your schema. This isn't mentioned in the documentation.
I'm not using Scout, but I wrote a dummy tracer just to get this working:
class DummyTracer
def self.instrument(_, _, &block)
block.call
end
end
YourSchema = GraphQL::Schema.define do
instrument :field, CacheQL::FieldInstrumentation.new(DummyTracer)
end
Should something like that be included in this gem for logging without Scout?
The text was updated successfully, but these errors were encountered:
It seems like for local logging to work you need to also include an instrumenter in your schema. This isn't mentioned in the documentation.
I'm not using Scout, but I wrote a dummy tracer just to get this working:
Should something like that be included in this gem for logging without Scout?
The text was updated successfully, but these errors were encountered: