繁体   English   中英

如何使用 Micrometer Tracing 将 TracingClientHttpRequestInterceptor 与 RestTemplate 的使用迁移到 springboot 3?

[英]how to migrate usage of TracingClientHttpRequestInterceptor with RestTemplate to springboot 3 with Micrometer Tracing?

我开始将服务迁移到 SpringBoot 3,现在我有一个使用org.springframework.cloud.sleuth.instrument.web.mvc.TracingInterceptor的问题代码

 restTemplate.getInterceptors().add(0,tracingInterceptor);

我没有在新的 Micrometer Tracing API 中找到org.springframework.cloud.sleuth.instrument.web.mvc.TracingInterceptor的类比。如何在使用restTemplate调用其他服务期间传播traceIdspanId

RestTemplate 原生使用千分尺观察 api 不需要在RestTemplate 上添加任何东西就可以有可观察性

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM