CS/SC/CR/SR 个来自非侦探应用程序的事件

CS/SC/CR/SR events from non sleuth applications

我还想从 App -> Service1 -> App -> Service2.
跟踪网络延迟 Spring sleuth 可以完美地找到 Sleuth 感知服务之间的延迟,比如 services1->service2 正如我在 Zipkin 中看到的 CS、SR 标签。现在我还想跟踪设备和我们正在跳跃的其他区域之间的网络延迟,但这些不是 Sleuth 感知服务。我怎样才能做到这一点。任何指针将不胜感激。

From the Docs,

That means that the current span has Trace-Id set to X, Span-Id set to D. It also has emitted Client Sent event.

是否有任何特定的headers需要从应用程序发送到服务器?

我知道 Sleuth 使用 Rest 模板开箱即用。我怎样才能从应用程序或其他非侦探服务做同样的事情。

请从 Zipkin 阅读此页面 - https://zipkin.io/pages/instrumenting.html。一切都写在那里。

HTTP 跟踪

HTTP headers 用于传递跟踪信息。

header 的 B3 部分以 Zipkin 的原始名称命名:BigBrotherBird。

Ids are encoded as hex strings:

X-B3-TraceId: 128 or 64 lower-hex encoded bits (required)
X-B3-SpanId: 64 lower-hex encoded bits (required)
X-B3-ParentSpanId: 64 lower-hex encoded bits (absent on root span)
X-B3-Sampled: Boolean (either “1” or “0”, can be absent)
X-B3-Flags: “1” means debug (can be absent)
For more information on B3, please see its specification.

另请查看 B3 规格页面 - https://github.com/openzipkin/b3-propagation