fxjson
V2EX  ›  问与答

go web 之如何添加 trace id

  •  
  •   fxjson · May 1, 2021 via Android · 1110 views
    This topic created in 1837 days ago, the information mentioned may be changed or developed.
    用 go 开发 web 的小伙伴们在日志里面怎么加 traceid 呢,方便根据 id 过滤当次的所有日志,求支招,又不想到处方法里面都加个 context 参数
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3354 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 13:06 · PVG 21:06 · LAX 06:06 · JFK 09:06
    ♥ Do have faith in what you're doing.