Skip to content

Instantly share code, notes, and snippets.

@rhyskeepence
rhyskeepence / tracing.scala
Created August 14, 2018 16:45
Demonstrate tracing at the system boundaries
import cats.data.{Kleisli, ReaderT}
import cats.effect.IO
import org.http4s.client.{Client, DisposableResponse}
import org.http4s.dsl.Http4sDsl
import org.http4s.{HttpService, Request}
class Something(client: Client[IO]) extends Http4sDsl[IO] {
private val service =
new ServiceThatKnowsNothingAboutTracing(new TracingAwareHttpClient(client))