We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c92f83 commit 8953ec3Copy full SHA for 8953ec3
guides/queries/tracing.md
@@ -181,10 +181,11 @@ The PrometheusExporter server must be run with a custom type collector that exte
181
182
```ruby
183
# lib/graphql_collector.rb
184
+if defined?(PrometheusExporter::Server)
185
+ require 'graphql/tracing'
186
-require 'graphql/tracing'
-
187
-class GraphQLCollector < GraphQL::Tracing::PrometheusTracing::GraphQLCollector
+ class GraphQLCollector < GraphQL::Tracing::PrometheusTracing::GraphQLCollector
188
+ end
189
end
190
```
191
0 commit comments