istio.io/content/zh/about/faq/distributed-tracing/no-tracing.md

17 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 为什么我的请求没有被追踪?
weight: 30
---
从 Istio 1.0.3 开始,其 `default` 追踪采样率已经降低到 1%。
[配置文件](/zh/docs/setup/additional-setup/config-profiles/)。
这意味着 Istio 捕获的 100 个追踪实例中只有 1 个将被报告给追踪后端。
`demo` 文件中的采样率仍设为 100%。
有关如何设置采样率的更多信息,可参见[本节](/zh/docs/tasks/observability/distributed-tracing/overview/#trace-sampling)。
如果您仍然没有看到任何追踪数据,请确认您的端口是否符合 Istio [端口命名规范](/zh/faq/traffic-management/#naming-port-convention)
并公开适当的容器端口(例如,通过 pod spec来启用 sidecar 代理Envoy能够对流量进行捕获。
如果您仅看到与出口代理相关联的跟踪数据,但没有看到与入口代理相关联的,那么它可能仍与 Istio [端口命名规范](/zh/faq/traffic-management/#naming-port-convention)相关。
请先了解 [Istio 1.3](/zh/news/releases/1.3.x/announcing-1.3/#intelligent-protocol-detection-experimental) 中自动检测**出口**流量的协议相关部分。