Please answer these questions before submitting a bug report.
latest
latest
I tried to initialize a tracer with no config, presuming it would load the required http plugin, however it did not work:
[nodemon] starting `node server.js`
PluginLoader#load: trying loading [email protected]
PluginLoader#load: applying patch to [email protected] using @opentelemetry/plugin-http module
PluginLoader#load: could not load plugin @opentelemetry/plugin-http of module http. Error: Cannot find module '@opentelemetry/plugin-http'
I thought it would be able to fetch @opentelemetry/plugin-http automatically
Please see above.
Add any other context about the problem here.
This might be intended behaviour, I would like to confirm if we need to explicitly install all modules that will be required by the tracer.
This is intentional as far as I am aware. Including all plugins as dependencies would be needlessly wasteful as most applications will use only a small fraction of the plugins. This will become more true as more plugins are added.
Thanks @dyladan!
Most helpful comment
This is intentional as far as I am aware. Including all plugins as dependencies would be needlessly wasteful as most applications will use only a small fraction of the plugins. This will become more true as more plugins are added.