@envelop/statsd 2.4.0 → 2.4.1-alpha-72027859.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,13 +25,14 @@ yarn add hot-shots @envelop/stats
|
|
|
25
25
|
## Usage Example
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
|
-
import { envelop } from '@envelop/core'
|
|
29
|
-
import { useStatsD } from '@envelop/statsd'
|
|
28
|
+
import { envelop } from '@envelop/core'
|
|
29
|
+
import { useStatsD } from '@envelop/statsd'
|
|
30
|
+
import StatsD from 'hot-shots'
|
|
30
31
|
|
|
31
32
|
const client = new StatsD({
|
|
32
33
|
port: 8020,
|
|
33
|
-
globalTags: { env: process.env.NODE_ENV }
|
|
34
|
-
})
|
|
34
|
+
globalTags: { env: process.env.NODE_ENV }
|
|
35
|
+
})
|
|
35
36
|
|
|
36
37
|
const getEnveloped = envelop({
|
|
37
38
|
plugins: [
|
|
@@ -39,8 +40,8 @@ const getEnveloped = envelop({
|
|
|
39
40
|
useStatsD({
|
|
40
41
|
client,
|
|
41
42
|
prefix: 'gql', // results in `gql.operations.count` instead of `graphql.operations.count`,
|
|
42
|
-
skipIntrospection: true
|
|
43
|
-
})
|
|
44
|
-
]
|
|
45
|
-
})
|
|
43
|
+
skipIntrospection: true // if you wish to disable introspection logging
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
})
|
|
46
47
|
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/statsd",
|
|
3
|
-
"version": "2.4.0",
|
|
3
|
+
"version": "2.4.1-alpha-72027859.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "
|
|
6
|
+
"@envelop/core": "2.4.1-alpha-72027859.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
8
8
|
"hot-shots": "^8.0.0 || ^9.0.0"
|
|
9
9
|
},
|