elastic / elastic/apm-agent-nodejs

switch to `process.getActiveResourcesInfo()` in node v16.14.0+

Open
#2,568 0 comments 0 reactions 0 assignees View on GitHub
agent-nodejs
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

Node v16.14.0 includes `process.getActiveResourcesInfo()` ([docs](https://nodejs.org/api/all.html#all_process_processgetactiveresourcesinfo), [PR](https://github.com/nodejs/node/pull/40813)) as a public alternative to `process._getActiveHandles()` and `process._getActiveRequests()`. We use the latter two in "lib/metrics/runtime.js". We should use the blessed new one when able.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.