Kamon icon indicating copy to clipboard operation
Kamon copied to clipboard

Losing context when using akka dispatchers

Open SimunKaracic opened this issue 4 years ago • 1 comments

Brought up by @ndchandar on gitter, creating an issue so we can keep track of it:

Hello,
I am having Context propagation issues when switching between Cats Effect IO and Scala Futures with the newer version (2.2.0). I don't see issues with Cats Effect IO + Default Scala global execution context.

When using Akka Dispatchers I seem to be losing context. Sharing minimal example https://gist.github.com/ndchandar/0c54f348a72308d3abb1741f311c650c
Appreciate your help on this.

SimunKaracic avatar Jun 17 '21 11:06 SimunKaracic

Same issue in our play framework projects that use cats effect IO. We have to switch between cats effect IO and Scala Future when doing retries with akka.pattern.retry(). When a retry is done it create a new context but it does not inherit from the previous context.

antoine-morisseau avatar Dec 08 '21 10:12 antoine-morisseau