Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utilities for converting Kleisli[F, Span[F], A] to F[A] #362

Merged
merged 3 commits into from
Oct 2, 2022

Conversation

mpilquist
Copy link
Member

@mpilquist mpilquist commented May 28, 2021

Use cases:

  • Span.dropTracing: Given some def mkFoo[F[_]: Trace]: F[Foo[F]], I don't want to trace the creation of Foo: Span.dropTracing.apply(mkFoo[Kliesli[F, Span[F], *]])
  • Span.rootTracing: Given a Stream[Kleisli[F, Span[F], A], convert to a Stream[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 to Span#span

@mpilquist mpilquist merged commit 8d6bbd7 into typelevel:series/0.1 Oct 2, 2022
@mpilquist mpilquist deleted the topic/noop branch October 2, 2022 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant