Async Hooks

Why Async Hooks

The Perfect Solution

The async_hooks module provides an API to register callbacks tracking the lifetime of asynchronous resources created inside a Node.js application.

  • generic solution to capture any asynchronous activity in a Node.js process
  • minimal performance overhead
  • powerful and flexible API