Istio实战:服务追踪、监控与安全保障
在使用Istio及其组件之前,我们可以利用B3头信息记录跟踪和跨度ID的传播情况。以下是具体操作步骤:
1. 编辑配置映射 :
bash kubectl edit cm product-composite
找到以下行:
plaintext # To see tracing headers, uncomment the following two lines and restart the product-composite service # spring.codec.log-request-details: true # logging.level.org.springframework.web.reactive.function.clie nt.ExchangeFunctions: TRACE
2. 取消注释并退出编辑器 :取消最后两行的注释,然后退出编辑器。
3. 重启微服务 :
bash kubectl delete pod -l app=product-composite
4. 打印日志输出 :
bash kubectl logs -f -l app=product-composite
5. 获取访问令牌并发送请求 :
bash unset ACCESS_TOKEN
超级会员免费看
订阅专栏 解锁全文
16

被折叠的 条评论
为什么被折叠?



