Instrumenting Node.js internals

 👋 I'm Alejandro

 

I work as backend engineer at X-Team.

I help with a few local communities like Meetup.js and other international ones like NodeConf Argentina and Nodeschool.

dev.to/a0viedo
@a0viedo

Scenario #1

you have a script or tool that is run through Node

you want to be able to tell if the tool is using the network and if that's the case, to collect the URLs that are used

npm i instrument --save-dev

Scenario #2

you're refactoring a part of your HTTP server and you want to identify which files are importing "moduleA.js".

the module is only being loaded by a specific type of request against your server

should I run this on production?

absolutely not.

PRs or bug reports are welcome

github.com/a0viedo/instrument

Thank you!

@a0viedo

Instrumenting Node.js internals

By Alejandro Oviedo GarcĂ­a

Instrumenting Node.js internals

  • 1,258