SkyAPM / SkyAPM-nodejs

The NodeJS server side agent for Apache SkyWalking
Apache License 2.0
128 stars 86 forks source link

Support enabling/disabling the agent via env var #114

Closed kezhenxu94 closed 4 years ago

kezhenxu94 commented 4 years ago

Most of the other language agents support disabling the agent by simply removing jars or setting env variable, this patch supports enabling/disabling the agent via environment variable SW_ENABLED, this is useful especially when the npm build takes a long time and the agent is not very stable now