fxjson
V2EX  ›  问与答

go web 之如何添加 trace id

  •  
  •   fxjson · May 1, 2021 via Android · 1137 views
    This topic created in 1851 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   ·   1162 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.