
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@envelop/statsd
Advanced tools
This plugin tracks the complete execution flow, and reports metrics using StatsD (based on `hot-shots`).
@envelop/statsd
This plugin tracks the complete execution flow, and reports metrics using StatsD (based on
hot-shots
).
Compatible with:
Available metrics:
graphql.operations.count
- the number of performed operations (including failures)graphql.operations.error_count
- the number of failed operationsgraphql.operations.latency
- a histogram of response times (in milliseconds)You can also customize the
graphql
prefix and add custom tags to the metrics.
yarn add hot-shots @envelop/statsd
import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import StatsD from 'hot-shots'
import { envelop, useEngine } from '@envelop/core'
import { useStatsD } from '@envelop/statsd'
const client = new StatsD({
port: 8020,
globalTags: { env: process.env.NODE_ENV }
})
const getEnveloped = envelop({
plugins: [
useEngine({ parse, validate, specifiedRules, execute, subscribe }),
// ... other plugins ...
useStatsD({
client,
prefix: 'gql', // results in `gql.operations.count` instead of `graphql.operations.count`,
skipIntrospection: true // if you wish to disable introspection logging
})
]
})
FAQs
This plugin tracks the complete execution flow, and reports metrics using StatsD (based on `hot-shots`).
The npm package @envelop/statsd receives a total of 3,472 weekly downloads. As such, @envelop/statsd popularity was classified as popular.
We found that @envelop/statsd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.