如何自定义弹簧反应堆中的侦查跨度?

问题描述

我在弹簧反应堆中启用了侦探:

spring.sleuth.enabled: true
spring.sleuth.reactor.enabled: true

在Spring Boot示例应用程序中声明并运行我的程序:

@EventListener(classes = ApplicationReadyEvent.class)
    public void executeSendingNotificationToServer() { 

   return Mono.fromrunnable(() -> {
     tracer.currentSpan().tag("sample-key","sample-value");
   })
   .then(<other business logic>)...

然后,我运行jaeger并查看来自我的应用程序的跟踪。 只有名称为“ async”的跟踪,并且没有键为“ sample-key”的标签

请帮我,如何分配标签以跨越流量?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)