Setting the file. One moment.
Subchapter 65.4
references/nodejs.mdMarkdown631 BView on GitHub
Use the shared environment variables guidance in SKILL.md Step 4: set DD_SERVICE, DD_ENV, DD_VERSION.
npm install --save dd-trace@latest.
Enable the profiler with the SDK loaded first:
export DD_PROFILING_ENABLED=true DD_ENV=<ENV> DD_SERVICE=<SERVICE_NAME> DD_VERSION=<VERSION>
node -r dd-trace/init app.jsIf the app already calls require('dd-trace').init(...), set DD_PROFILING_ENABLED=true or pass profiling: true to the existing init instead of adding another.
For TypeScript or bundled apps, keep the SDK import first in the entrypoint.