Skip to content

Commit

Permalink
Update examples/src/main/scala/PekkoHttpExample.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Marissa | April <[email protected]>
  • Loading branch information
iRevive and NthPortal authored Dec 17, 2024
1 parent 4ecaeaa commit 709340a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/main/scala/PekkoHttpExample.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 709340a

Please sign in to comment.