Skip to content

Commit ef58870

Browse files
committed
Update PekkoHttpTestWebServerWithActor.scala
1 parent e380241 commit ef58870

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

instrumentation/pekko/pekko-http-1.0/javaagent/src/test/scala/io/opentelemetry/javaagent/instrumentation/pekkohttp/v1_0/PekkoHttpTestWebServerWithActor.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ object PekkoHttpTestWebServerWithActor {
2222
implicit val executionContext: ExecutionContext = system.dispatcher
2323

2424
private case object TestMessage
25-
private class KamonTestActor extends Actor {
25+
private class SpanTestActor extends Actor {
2626
def receive = { case TestMessage =>
2727
sender() ! spanSummary(Span.current())
2828
}
2929
}
3030

31-
val kamonTestActor = system.actorOf(Props[KamonTestActor]())
31+
val spanTestActor = system.actorOf(Props[SpanTestActor]())
3232

3333
var route = get {
3434
path("test") {
3535
complete {
36-
val kamonSummary = spanSummary(Span.current())
37-
kamonTestActor.ask(TestMessage)(Timeout(5.seconds)).mapTo[String].map {
36+
val otelSummary = spanSummary(Span.current())
37+
spanTestActor.ask(TestMessage)(Timeout(5.seconds)).mapTo[String].map {
3838
actorSummary =>
39-
s"Route=$kamonSummary\nActor=$actorSummary"
39+
s"Route=$otelSummary\nActor=$actorSummary"
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)