fxjson
V2EX  ›  问与答

go web 之如何添加 trace id

  •  
  •   fxjson · May 1, 2021 via Android · 1266 views
    This topic created in 1909 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   ·   1023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 19:10 · PVG 03:10 · LAX 12:10 · JFK 15:10
    ♥ Do have faith in what you're doing.