Commit 82beb4f4 authored by Jason Goodman's avatar Jason Goodman

Specify full namespace to Instrumentation in Graphql style example

parent cd2a9394
...@@ -798,11 +798,15 @@ that wraps around a query being executed. It is implemented as a module that use ...@@ -798,11 +798,15 @@ that wraps around a query being executed. It is implemented as a module that use
Example: `Present` Example: `Present`
```ruby ```ruby
module Present module Gitlab
#... some code above... module Graphql
module Present
def self.use(schema_definition) #... some code above...
schema_definition.instrument(:field, Instrumentation.new)
def self.use(schema_definition)
schema_definition.instrument(:field, ::Gitlab::Graphql::Present::Instrumentation.new)
end
end
end end
end end
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment