简体   繁体   中英

Web request tracing in node.js

I have a web application with node + express. I want to record web request execution from start to end which include some db calls as well. How could I map the context of http request to db call context. I have tried async_hook APIs as well. Found that in case of db calls it uses the old connection instead of creating new connection. In this condition how can I map http request to db call? Thanks in advance.

Try eizer Zipkin or this https://blog.risingstack.com/distributed-tracing-opentracing-node-js/

Ps Db requests tracing - is painful task =)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM