diff --git a/examples/src/main/scala/PekkoHttpExample.scala b/examples/src/main/scala/PekkoHttpExample.scala index 14b2919d7..c1379afc9 100644 --- a/examples/src/main/scala/PekkoHttpExample.scala +++ b/examples/src/main/scala/PekkoHttpExample.scala @@ -75,7 +75,7 @@ object PekkoHttpExample extends IOApp.Simple { def run: IO[Unit] = OtelJava.global[IO].flatMap { otelJava => - implicit val local: LocalContext[IO] = otelJava.localContext + import otelJava.localContext otelJava.tracerProvider.get("com.example").flatMap { implicit tracer: Tracer[IO] => createSystem.use { implicit actorSystem: ActorSystem =>