reactiverse-contextual-logging icon indicating copy to clipboard operation
reactiverse-contextual-logging copied to clipboard

Compatibility with executeBlocking

Open victornoel opened this issue 10 months ago • 1 comments

Hi,

I am using this lib (v1, not v2) and I noticed that sometimes the wrong context data is used in some of my logs.

It feels like it's only from logs that happens inside a call to executeBlocking.

I also found this ticket for improving vertx local context data in v5 and it seems to confirm my hunch that ContextData does not work well with executeBlocking.

Is there any plan to fix this for v1 or maybe are there some known way of dealing with this situation as a workaround until vertx 5 is released?

victornoel avatar Mar 21 '25 11:03 victornoel

Hi, there tests for the executeBlocking case, but not test suite is ever complete. If you can share a small reproducer we can try to look into it.

tsegismont avatar Mar 21 '25 13:03 tsegismont