gpt4 book ai didi

kubernetes - istio 中的 envoy 可以跟踪外部 https api 吗?

转载 作者:行者123 更新时间:2023-12-02 11:46:44 25 4
gpt4 key购买 nike

我们使用 istio 来使用分布式跟踪。我们的微服务有时需要访问外部 API,这些 API 通常通过 https 进行通信。

为了测量整个系统的准确性能,我们希望在访问外部 API 时跟踪通信。
但是,分布式跟踪需要访问请求的 header ,但是 https 不允许访问,因为 header 是加密的。
为了确认,我在启用了 istio 的 GKE 上部署 bookinfo,进入 productpage pod 的 productpage 容器,并执行以下命令。

$ curl http://google.com
$ curl https://google.com

zipkin 上只显示 http 通信。

是否可以得到一系列的踪迹,包括使用外部 https 的 API?

最佳答案

基于 envoy documentation它不支持 https 跟踪。

The tracing configuration specifies global settings for the HTTP tracer used by Envoy. The configuration is defined by the Bootstrap tracing field. Envoy may support other tracers in the future, but right now the HTTP tracer is the only one supported.



而这篇关于 stackoverflow 的帖子

HTTPS (HTTP over SSL) sends all HTTP content over a SSL tunel, so HTTP content and headers are encrypted as well.



我什至试图重现这一点,但就像你的情况一样,zipkin 仅适用于 http。

基于此,我会说不可能使用 zipkin 来跟踪 https。

关于kubernetes - istio 中的 envoy 可以跟踪外部 https api 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59924890/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com