Open robolivable opened 5 years ago
It appears that the call to ToLocalChecked
on this line may be the culprit...
So am I right in thinking you want to instrument only part of your Node application, excluding honeycomb-beeline
from being monitored?
From the README:
You must call require('appmetrics'); before the require statements for any npm modules you want to monitor. Appmetrics must be initialized first so that it can instrument modules for monitoring as they are loaded.
@mattcolegate I reached this edge case in a project that was already using Honeycomb instrumentation.
Is it impossible to have two instrumentation tools working without this type of conflict?
I would like to benefit from the application-level instrumentation Appmetrics enables while still getting the visualization tools Honeycomb provides.
Also to answer your question directly, yes, I would like to exclude honeycomb-beeline
from being monitored/instrumented.
What is wrong
Requiring appmetrics any point after calling
require('honeycomb-beeline')()
causes this nasty stack:What is expected
Appmetrics loads without showing
FATAL ERROR
and NodeJS does not exit as a result.Additional info
You can use the following Node application to reproduce the issue:
test.js
package.json
Note that placing the
require('appmetrics')
aboverequire('honeycomb-beeline')()
line does not cause an error, and Node executes as expected.