Pack and check the source release tarball with GNU tar in a Linux container (#150) npm run package-src packs the tarball with scripts/linux-tar.sh, which runs GNU tar in a pinned Linux image instead of the host's tar, and npm run release-src unpacks it with GNU tar in that image before signing, stopping on any tar warning or any AppleDouble `._*` file. The release script's tool check requires Docker with its daemon running. The 0.9.0 source tarball was packed on macOS, whose tar stored file extended attributes as AppleDouble `._*` entries: 317 of its 637 entries. GNU tar on Linux unpacks them as stray files and warns about their extended-attribute headers (apache/skywalking#14271). The container does not see macOS attributes and GNU tar creates no `._*` entries. linux-tar.sh is one file, kept identical in the release scripts of skywalking, skywalking-java, skywalking-mcp, skywalking-swck, skywalking-helm, skywalking-client-js and skywalking-nodejs.
The Apache SkyWalking Node.js Agent reports distributed traces and Node.js runtime metrics to an Apache SkyWalking OAP server. It instruments supported Node.js libraries without changes to their source code.
npm install skywalking-backend-js
Start the agent before loading the modules that it must instrument:
import agent from 'skywalking-backend-js'; agent.start({ serviceName: 'checkout-service', collectorAddress: '127.0.0.1:11800', });
The same values can be set with environment variables:
export SW_AGENT_NAME=checkout-service export SW_AGENT_COLLECTOR_BACKEND_SERVICES=127.0.0.1:11800
See Quick start for the full setup and a way to load the agent with Node.js --require.
The documentation index includes:
Read Build and test before sending a change. Plugin authors should also read Plugin development.
Nodejs in the issue title.dev@skywalking.apache.org mailing list by sending a message to dev-subscribe@skywalking.apache.org.skywalking channel on Apache Slack.