chzhuo / skywalking-agent-node

The NodeJS agent for Apache SkyWalking, an alternative to Skywalking-Nodejs, is a fork of Skywalking-Nodejs and is based on Opentelemetry-js instrumentations
Apache License 2.0
1 stars 0 forks source link

Why no have a binnary to exec in the linux when use npm install -g skywalking-agent-node? #1

Open vihoyau opened 2 years ago

vihoyau commented 2 years ago

1.Why no have a binnary to exec in the linux when use “npm install -g skywalking-agent-node”? ex:https://github.com/aliyun-node/agenthub/blob/master/bin/agenthub Alibaba supply developer to deploy runtime .

2.Why no Support "import skywalking-agent-node from "skywalking-agent-node" "? Can I supplement a PR about write index.d.ts?

chzhuo commented 2 years ago

哈哈,真没想到有人会看到这个仓库。我写这个项目的动机是:

  1. skywalking-nodejs 功能稍弱,支持的组件少。
  2. opentelemetry-js 的 instrumentations 种类很多,支持的也很好。

skywalking 和 opentelemetry 两个协议是不兼容的。这个项目使用了 opentelemetry-js 的基础设施,但是使用的方式很不优雅,而且对 skywalking 的 tracing 协议支持也是不完善的。虽然能用,但若用到线上还是要慎重考虑。

1.Why no have a binnary to exec in the linux when use “npm install -g skywalking-agent-node”? ex:https://github.com/aliyun-node/agenthub/blob/master/bin/agenthub Alibaba supply developer to deploy runtime .

tracing 是要少量侵入应用程序的,这样才能注入 context,需要跟应用程序同一个进程。

2.Why no Support "import skywalking-agent-node from "skywalking-agent-node" "? Can I supplement a PR about write index.d.ts?

可以