Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

@bmacnaughton requesting membership/observer #211

Closed
bmacnaughton opened this issue Oct 25, 2018 · 5 comments
Closed

@bmacnaughton requesting membership/observer #211

bmacnaughton opened this issue Oct 25, 2018 · 5 comments

Comments

@bmacnaughton
Copy link

I develop Solarwinds APM agent for node and am directly impacted by changes to module loading.

Packages like stealthy-require and esm present problems. My primary interest is in making sure there is a viable way to patch required modules in order to instrument them.

@MylesBorins MylesBorins added the modules-agenda To be discussed in a meeting label Oct 25, 2018
@GeoffreyBooth
Copy link
Member

+1. Out of curiosity, what problems do those modules present?

@bmacnaughton
Copy link
Author

bmacnaughton commented Oct 25, 2018

stealthy-require unloads already loaded modules. Our instrumentation module sends an init message on load via nexttick as well as modifying the require module so newly loaded modules (that we instrument) get patched for instrumentation. stealthy-require's unloading the cache results in two init messages and the patching referring to an instance of our module that is no longer loaded. (There is a workaround in place for this but it took a bit to isolate the issue.)

esm, if loaded first, breaks us. With node 10.11.0, esm, in combination with us, causes a core dump. The command line:

node -r appoptics-apm -r esm index.js where index.js is an empty file results in a core dump.

I haven't dug deeply into it because the customer is fine with running node 8 but I'll have to at some point.

@devsnek
Copy link
Member

devsnek commented Oct 25, 2018

observer sounds good to me.

@bmacnaughton btw esm (@jdalton i'll give you a million dollars to rename it) isn't ours and we don't provide support for it, you should direct that to https://github.com/standard-things/esm

@bmacnaughton
Copy link
Author

@devsnek - I know it's not yours and I wish it didn't exist. I'll ask them for support at some point when I have time to isolate the issue or when the customer can't use node 8.

@MylesBorins
Copy link
Contributor

Approved with quorum in the meeting

@GeoffreyBooth GeoffreyBooth removed modules-agenda To be discussed in a meeting labels May 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants