Integrating Effect with libp2p and maintaining context across asynchronous boundaries

I am currently running into a problem, where I am trying to integrate logging with a part of a system that runs outside of effect, I am trying to integrate libp2p.

What basically happens is:

effect code --calls-> libp2p async method --calls-> effect code --calls-> libp2p async method --calls-> effect logger


Now the problem I am currently facing is that at these promise boundaries I am currently losing the Context and any ability to provide things via layers. I was wondering if there's a solution to this that's not super convoluted.
Was this page helpful?