-
Added default support for config files with a 'cjs' extension (
newrelic.cjs
) in addition tonewrelic.js
.Thank you to @Maddemacher for the contribution!
-
Added ability to specify a custom config file name with the
NEW_RELIC_CONFIG_FILENAME
environment variable.Thank you to @Maddemacher for the contribution!
-
Fixed issue when using the 'new_promise_tracking' feature flag where segment mapping may not get cleaned up for promises which never resolve but have all references removed (and thus get cleaned up by GC).
Adds segment cleanup on 'destroy' when using 'new_promise_tracking' feature flag in addition to the existing 'promiseResolve' hook. Unfortunately, preventing leaks for this edge-case does come with additional overhead due to adding another hook. Memory gains from feature flag usage should still be worth the trade-off and reduced garbage collection may offset perf/CPU impacts or event still result in net gain, depending on the application.
-
Bumped
@newrelic/test-utilities
to ^5.1.0. -
Replaced deprecated
util.isArray
withArray.isArray
. -
Removed unused
listenerCount
method onShim
. -
Properly bootstraped husky as a
prepare
script. -
Removed commented-out console log from fastify instrumentation.