@fiverr/statsd-client

中文文档
1.1.3发布于 2026/05/01MITTypeScriptCommonJS零依赖近 30 天下载 1.4万

📈 A feature packed, highly customisable StatsD client

原始使用文档
文档目录3 节
  1. 📈 A feature packed, highly customisable StatsD client
  2. Get started quickly
  3. Out-of-the box features and customisations

@fiverr/statsd-client

📈 A feature packed, highly customisable StatsD client

See full documentation

Get started quickly

const SDC = require('@fiverr/statsd-client');

const stats = new SDC({host: '127.0.0.1', port: '8125'});
stats.count('my_application_name.visit_count'); // 31 (pending bulk size)

Out-of-the box features and customisations

Features
🛍StatsD metric types: count, time, gauge, set, histogram
🎩Instance sticky prefix (optional)
🔧Custom schemes support
🎁Preconfigured schemes: DataDog, Graphite (Carbon tags 🎉)
🏷Instance tags - pre-set tags for an instance or set tags when sending
🔮Sampling (sample rate)
🕸Protocols: UDP, TCP
🌎Protocol versions: ipv4, ipv6
⏲Custom flush period (Cutoff time for packets allows controlled traffic)
📦Custom MTU limit (maximum transmission unit)
🚨Error handling
🎈And then some

版本与发布记录

@fiverr/statsd-client 共发布 29 个版本,首次发布于 2019/03/27;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.1.3latest2026/05/016 个月前
1.1.22024/08/132 年前
1.1.12024/03/132 年前
1.1.02022/04/034 年前
1.1.0-rc-7b6ae92enfore-rate-individually2022/04/024 年前
1.0.92021/07/285 年前

其他发布通道:2020-01-30-de-ref-UDP-socket → 1.0.2-rc-38f8dfa,2020-04-16-fix-socket-premature-ending → 1.0.3-rc-f1ece3e,kill-idle-sockets-rc → 1.0.8-rc-df94a8d,enfore-rate-individually → 1.1.0-rc-7b6ae92。

关于 @fiverr/statsd-client 的常见问题

@fiverr/statsd-client 是什么?

📈 A feature packed, highly customisable StatsD client

如何安装 @fiverr/statsd-client?

在项目目录运行 npm install @fiverr/statsd-client,或使用 pnpm add / yarn add / bun add。

@fiverr/statsd-client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fiverr/statsd-client 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fiverr/statsd-client 可以商用吗?

@fiverr/statsd-client 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fiverr/statsd-client 的下载量有多少?

根据 npm 官方下载统计,@fiverr/statsd-client 在 2026/10/15 – 2026/11/13 这 30 天内被下载 14,477 次,日均约 483 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fiverr/statsd-client 还在维护吗?

最新版本 1.1.3 发布于 2026/05/01(6 个月前);至今共发布 29 个版本,其中过去 12 个月发布了 1 个;首次发布于 2019/03/27。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。