AnswerBun.com

How to customize sleuth span in spring reactor?

Stack Overflow Asked by voipp on December 12, 2020

I enabled sleuth in spring reactor:

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

In spring boot sample app declared and run my program:

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

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

Then I run jaeger and see traces coming from my app.
There are only traces with name "async", and there are no tags with the key "sample-key".

Help me please, how to assign tags to span in my flux?

Add your own answers!

Related Questions

Trying to get property ‘post_title’ of non-object with

1  Asked on January 1, 2022 by german-mazzaferro

   

Select max for a tuple in table

2  Asked on January 1, 2022 by maxsteel

         

bind python/flask module app yo WINDOWS Server IIS

1  Asked on January 1, 2022 by shaul-sondak

     

Break apart email attachment if zip is too big to email

0  Asked on January 1, 2022 by programmingislife

       

Retrieve previous position of an Image on refresh page

2  Asked on January 1, 2022 by roel-thijssen

 

EMP id Masking with asterisk inbetween string

2  Asked on December 30, 2021 by bala

   

Create Sidebar Nav menu

1  Asked on December 30, 2021

     

Avoid select from dual Union in PL/SQL

3  Asked on December 30, 2021 by alc

     

SQL pulling distinct values and creating an ID

2  Asked on December 30, 2021 by jamheadart

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP