Kamon
Kamon copied to clipboard
Losing context when using akka dispatchers
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.
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.