File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/web/docs/src/content/gateway Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1804,7 +1804,7 @@ You can use `@graphql-mesh/plugin-statsd` plugin to collect and send metrics to
1804
1804
and InfluxDB's Telegraf StatsD services.
1805
1805
1806
1806
``` sh npm2yarn
1807
- npm i @graphql-mesh/plugin-statsd hot-shots
1807
+ npm i @graphql-mesh/plugin-statsd
1808
1808
```
1809
1809
1810
1810
Compatible with:
@@ -1834,7 +1834,6 @@ Available metrics:
1834
1834
<Tabs.Tab >
1835
1835
1836
1836
``` ts filename="gateway.config.ts"
1837
- import { StatsD } from ' hot-shots'
1838
1837
import { defineConfig } from ' @graphql-hive/gateway'
1839
1838
import useStatsD from ' @graphql-mesh/plugin-statsd'
1840
1839
@@ -1843,9 +1842,9 @@ export const gatewayConfig = defineConfig({
1843
1842
useStatsD ({
1844
1843
... pluginCtx ,
1845
1844
// Configure `hot-shots` if only you need. You don't need to pass this if you don't need to configure it.
1846
- client: new StatsD ( {
1845
+ client: {
1847
1846
port: 8020
1848
- }) ,
1847
+ },
1849
1848
// results in `my-graphql-gateway.operations.count` instead of `graphql.operations.count`
1850
1849
prefix: ' my-graphql-gateway' ,
1851
1850
// If you wish to disable introspection logging
You can’t perform that action at this time.
0 commit comments