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 252b30a commit da513acCopy full SHA for da513ac
guides/queries/tracing.md
@@ -191,3 +191,18 @@ end
191
```sh
192
bundle exec prometheus_exporter -a lib/graphql_collector.rb
193
```
194
+
195
+## Statsd
196
197
+You can add Statsd instrumentation by initializing a statsd client and passing it to {{ "GraphQL::Tracing::StatsdTracing" | api_doc }}:
198
199
+```ruby
200
+$statsd = Statsd.new 'localhost', 9125
201
+# ...
202
203
+class MySchema < GraphQL::Schema
204
+ use GraphQL::Tracing::StatsdTracing, statsd: $statsd
205
+end
206
+```
207
208
+Any Statsd client that implements `.time(name) { ... }` will work.
0 commit comments