In my git repo I have an internal logger module that is stored as a git submodule, let's call it logger-module. It looks like this
The logger-module/index.js requires and starts elastic-apm-node at the very top.
The main app index.js requires logger-module at the very top also.
It all works fine, APM gets all the data captured by the main app.
I also have another app, that also uses logger-module along with other submodules that use it too. It looks like this:
As you can see logger-module (with elastic-apm-node inside) will be required twice. Will it break my another-application? Will I get two instances of elastic-apm-node?