Pretty new to both Arrow and functional programmin...
# arrow
a
Pretty new to both Arrow and functional programming, so excuse my confusion beforehand. 🙂 I have working code like the following:
Copy code
either {
  val id = parse(info).bind()
  val result = fetch(id).bind()
  Either.catch { ... }.mapLeft { ... }
}
And I am trying to get MDC logging to propagate through all of these calls. But it seems Arrow is dispatching on a new CoroutineContext so the MDCContext() in the original context is not propagated. Any pointers as to how I can get this to run with the "parent" context? IO.unsafeRunScoped seems relevant but not applicable... 🙂
s
Hey @Anders Sveen, I assume you're on
0.11.0
? This is fixed in `0.12.0`/`0.13.0` which will be released this week or next.
👍 3
a
Yes 0.11.0 . Ah, great. We can wait till then. Thanks. 🙂
s
Great 👍 You're very welcome!