[英]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
调用其他服务期间传播traceId
和spanId
?
RestTemplate 原生使用千分尺观察 api 不需要在RestTemplate 上添加任何东西就可以有可观察性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.