Tag

AsyncHooks

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Sep 15, 2021 · Backend Development

Design and Implementation of Full-Chain Tracing for Node.js Applications Using Async Hooks

This article explains how to acquire full‑chain tracing information in Node.js applications by leveraging Async Hooks to build an invoke tree, manage context propagation, perform garbage collection, and attach custom metadata, enabling precise debugging of complex asynchronous call graphs.

AsyncHooksDistributed TracingFull-Chain Tracing
0 likes · 16 min read
Design and Implementation of Full-Chain Tracing for Node.js Applications Using Async Hooks
Taobao Frontend Technology
Taobao Frontend Technology
May 19, 2020 · Backend Development

Implicitly Passing Context in Node.js with AsyncHooks

This article explains how Node.js’s AsyncHooks API can be used to implicitly propagate request context across asynchronous calls, illustrates the mechanism with login flow diagrams, compares explicit context handling in frameworks like Express and Egg, and discusses performance and adoption considerations.

AsyncHooksContext PropagationNode.js
0 likes · 8 min read
Implicitly Passing Context in Node.js with AsyncHooks