将 Spring Boot 2.x 与基于 Spring Sleuth 的跟踪结合使用时,我们可以使用 application.properties 文件中的属性为 Spans 配置自定义标签。
例子:
spring.sleuth.otel.resource.attributes.CUSTOM-KEY=自定义值
由于 Spring Boot 3.x 使用 Micrometer 跟踪并且不支持 Sleuth,是否可以按上述方式配置自定义标签或者最佳实践是什么?