@appsignal/nodejs

中文文档
3.9.4发布于 2026/10/23MITTypeScriptCommonJS近 30 天下载 6.3万

The AppSignal for Node.js library.

原始使用文档
文档目录6 节
  1. Installation
  2. Development
  3. Installation
  4. Testing
  5. Contributing
  6. Support

AppSignal for Node.js

The AppSignal for Node.js library.

npm (scoped) code style: prettier

Installation

Please follow our installation guide in our documentation. We try to automatically instrument as many packages as possible, but may not always be able to. Make to sure follow any instructions to add manual instrumentation.

Development

Installation

This repository is a mono-managed repository. First install mono on your local machine by following the mono installation steps.

Then install the dependencies and prepare the project for development use using mono:

mono bootstrap

You can then run the following to start the compiler in watch mode.

npm run build:watch --parallel

You can also build the library without watching the directory:

mono build

Version management configuration is provided for asdf.

Testing

The tests for this library use Jest as the test runner. Once you've installed the dependencies, you can run the following command in the root of this repository to run the tests for all packages, or in the directory of a package to run only the tests pertaining to that package:

mono test

Contributing

Thinking of contributing to this repo? Awesome! 🚀

Please follow our Contributing guide in our documentation and follow our Code of Conduct.

Also, we would be very happy to send you Stroopwafels. Have look at everyone we send a package to so far on our Stroopwafels page.

Support

Contact us and speak directly with the engineers working on AppSignal. They will help you get set up, tweak your code and make sure you get the most out of using AppSignal.

版本与发布记录

@appsignal/nodejs 共发布 154 个版本,首次发布于 2020/01/23;过去 12 个月发布了 8 个版本。

版本发布日期距今
3.9.4latest2026/10/2315 天前
3.9.32026/10/2216 天前
3.9.22026/10/1424 天前
3.9.12026/09/101 个月前
3.9.02026/09/081 个月前
3.8.12026/06/104 个月前

其他发布通道:alpha → 1.2.5-alpha.2,beta → 3.0.3-beta.1。

关于 @appsignal/nodejs 的常见问题

@appsignal/nodejs 是什么?

The AppSignal for Node.js library.

如何安装 @appsignal/nodejs?

在项目目录运行 npm install @appsignal/nodejs,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 appsignal-diagnose,可以用 npx appsignal-diagnose 直接运行。

@appsignal/nodejs 支持 TypeScript 吗?

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

@appsignal/nodejs 支持 ESM 还是 CommonJS?

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

@appsignal/nodejs 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 20.6.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@appsignal/nodejs 可以商用吗?

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

@appsignal/nodejs 的下载量有多少?

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

@appsignal/nodejs 还在维护吗?

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