你可以使用侦探来检查对象的状态吗?

huangapple go评论56阅读模式
英文:

Can you check object's state using sleuth?

问题

我正在尝试弄清楚是否可以使用Sleuth来追踪一些对象字段。
我目前在阅读Zipkin和Sleuth的文档时有些迷茫。有人尝试过吗?
我们能否将一个对象添加到span中,并在日志中查看其详细信息?

英文:

I am trying to figure out if I can trace some objects fields using sleuth.
I am currently lost in Zipkin's and Sleuth's docs. Does anybody do this?
Can we add an object to span and view its details in logs?

答案1

得分: 1

你只能在跨度被报告之前才能这样做。你不能在运行时检查它的细节。

英文:

You can only do that just before the span gets reported. You can't check its details at runtime.

huangapple
  • 本文由 发表于 2023年1月9日 17:24:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75055246.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定