После долгих исследований я обнаружил, что в файле node.js async_hooks имеется API для регистрации обратных вызовов, отслеживающих время жизни асинхронных ресурсов, созданных в приложении Node.js.
const async_hooks = require('async_hooks');
const eid = async_hooks.executionAsyncId(); // Return the ID of the current execution context.
const tid = async_hooks.triggerAsyncId(); // Return the ID of the handle responsible for triggering the callback of the current execution scope to call.