natchez
natchez copied to clipboard
Add utilities for converting Kleisli[F, Span[F], A] to F[A]
Use cases:
Span.dropTracing: Given somedef mkFoo[F[_]: Trace]: F[Foo[F]], I don't want to trace the creation ofFoo:Span.dropTracing.apply(mkFoo[Kliesli[F, Span[F], *]])Span.rootTracing: Given aStream[Kleisli[F, Span[F], A], convert to aStream[F, A], but don't create a root span for each effect encountered, or otherwise "background" stuff ends up creating empty root spans.stream.mapK(Span.rootTracing)ends up creating a root span for the first call toSpan#span