Skip to content

Commit

Permalink
Update doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
iRevive committed Dec 31, 2024
1 parent 05b886d commit 45c08f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/oteljava/tracing-context-propagation.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ import org.typelevel.otel4s.trace.Tracer

def program(tracer: Tracer[IO]): IO[Unit] =
tracer.span("test").use { span => // start 'test' span using otel4s
val jSpanContext = JSpan.current().getSpanContext // get a span from a ThreadLocal var
IO.println(s"jctx: ${jSpanContext}") >> IO.println(s"otel4s: ${span.context}")
println(s"jctx : ${JSpan.current().getSpanContext}") // get a span from a ThreadLocal var
IO.println(s"otel4s: ${span.context}")
}

def run: IO[Unit] = {
Expand Down

0 comments on commit 45c08f6

Please sign in to comment.