<@U03A2NXQM39> have you checked this? <https://sig...
# support
p
@Monesh s have you checked this? https://signoz.io/docs/instrumentation/nodejs/
m
Hi @Pranay i gone through this document
how to start the tracing.js using pm2?
p
pm2 just span a different process in different core...
would it be working same only ?
p
@Monesh s Is the standard way of running
pm2
not working? Something like
pm2 start -r ./tracing.js index.js
m
let me check that @Pranay we can pass the environmental variables in .env
is it get picked?
Copy code
module.exports = {
  apps : [{
    name: 'app-name',
    script: '/app-name/bin/www',

    // Options reference: <https://pm2.io/doc/en/runtime/reference/ecosystem-file/>
    instances: 1,
    exec_mode : "cluster",
    autorestart: false,
    watch: false,
    max_memory_restart: '1G',
    args: [],
    env: {
      APP_PORT: '3023'
    }
 }

]
};
this is our ecosystem-config.js file
now how to modify the script to start the tracing.js
@Pranay
p
@Prashant Shahi do you have insights on this?
Copy code
'/app-name/bin/www
@User is this a script you are running? Is this possible to add steps importing tracing.js in this script If you are not able to figure out, might be easier to jump on a call sometime to understand your setup
m
Let me check with importing the file inside the js file and if not will connect in the call.