Skywalking Node.js 探针是由 Skywalking 社区提供专门针对 Node.js 生态下的后端应用提供的自动探针

Skywalking Node.js 探针遵守 Skywalking 追踪协议,Node.js 探针能够结合 SkyWalking 的后端分析追踪能力提供数据聚合,持久化,告警和可视化等能力,大家可以通过 npm 命令下载并使用 Node.js 探针。

探针模块的 npm 依赖:

从 npmjs 安装 SkyWalking NodeJS 依赖包:

$ npm install --save skywalking-backend-js

Node.js 探针使用:

SkyWalking NodeJS SDK requires SkyWalking backend (OAP) 8.0+ and NodeJS >= 10.

import agent from 'skywalking-backend-js';

agent.start();

This will use default configurations to start the SkyWalking agent above, if you want to specify your own configurations, here are two methods.

Pass those values to agent.start method, such as:

agent.start({
  serviceName: 'my-service-name',
  serviceInstance: 'my-service-instance-name',
  collectorAddress: 'my.collector.address:port',
});

https://github.com/apache/skywalking-nodejs

作者:Jeebiz  创建时间:2023-03-01 18:19
最后编辑:Jeebiz  更新时间:2024-02-28 14:53