From d86c29ec654753df6e8ab1453316813eefe6484a Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Fri, 22 Feb 2019 16:17:27 +0800 Subject: [PATCH] zh: add initial-zipkin-header.md, why-mixer-spans.md (#3354) --- .../distributed-tracing/initial-zipkin-header.md | 6 ++++++ .../help/faq/distributed-tracing/why-mixer-spans.md | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 content_zh/help/faq/distributed-tracing/initial-zipkin-header.md create mode 100644 content_zh/help/faq/distributed-tracing/why-mixer-spans.md diff --git a/content_zh/help/faq/distributed-tracing/initial-zipkin-header.md b/content_zh/help/faq/distributed-tracing/initial-zipkin-header.md new file mode 100644 index 0000000000..cd5d2a526c --- /dev/null +++ b/content_zh/help/faq/distributed-tracing/initial-zipkin-header.md @@ -0,0 +1,6 @@ +--- +title: 初始的 Zipkin (B3) HTTP header 由谁生成? +weight: 15 +--- + +如果请求没有提供 header,Istio sidecar 代理(Envoy)将为其生成初始 [header](https://www.envoyproxy.io/docs/envoy/latest/configuration/http_conn_man/headers#x-request-id)。 \ No newline at end of file diff --git a/content_zh/help/faq/distributed-tracing/why-mixer-spans.md b/content_zh/help/faq/distributed-tracing/why-mixer-spans.md new file mode 100644 index 0000000000..fe390dbf74 --- /dev/null +++ b/content_zh/help/faq/distributed-tracing/why-mixer-spans.md @@ -0,0 +1,13 @@ +--- +title: 为什么我只在部分分布式追踪中看到 `istio-mixer` span ? +weight: 100 +--- + +Mixer 为携带追踪 header 并到达 Mixer 的请求生成应用程序级追踪信息。 +Mixer 会生成 span,并将其标记为 `istio-mixer` 以便用于它所做的任何关键工作,包括分发到各个适配器。 + +Envoy 缓存在数据路径上对 Mixer 的调用。 +因此,通过 istio-policy 服务对 Mixer 发出的调用只会在特定的请求中发生,例如:缓存过期或者请求具有不同特征。 +正是由于这个原因,您只看到了 Mixer 参与了您的 *一些* 追踪(而非全部)。 + +要关闭 Mixer 的应用程序级追踪,您必须编辑 `istio-policy` 的部署配置,删除命令行参数 `--trace_zipkin_url`。 \ No newline at end of file