You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can do it once per app, at startup, and pass the Trace[IO] instance everywhere, which is very convenient and doesn't require any wrapping in Kleisli.
I'd happily contribute something similar, or even provide a shortcut that goes from EntryPoint[IO] straight to IO[Trace[IO]] (to avoid the question of what span to use as the default). Does this seem like a good idea?
The text was updated successfully, but these errors were encountered:
👍 Great idea! I was trying to find a sane way to use Trace[IO] with skunk Session being initialized only once in AWS Lambda for multiple requests (using feral). Thanks so much for posting this here :)
Hello! I've been using something like this to make
Trace[IO]
bearable:The idea is that
Trace.ioTrace
requires a default Span that it starts from. The combined usage looks like this:You can do it once per app, at startup, and pass the
Trace[IO]
instance everywhere, which is very convenient and doesn't require any wrapping in Kleisli.I'd happily contribute something similar, or even provide a shortcut that goes from
EntryPoint[IO]
straight toIO[Trace[IO]]
(to avoid the question of what span to use as the default). Does this seem like a good idea?The text was updated successfully, but these errors were encountered: