aboutsummaryrefslogtreecommitdiff
path: root/kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2013-11-23 21:58:28 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2013-11-23 21:58:28 -0300
commitddb000a4510dfce20f7090ac92ea9144403addd6 (patch)
tree3e249637e4282dfa6ebc06b03e96405e0d0bd93e /kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala
parentf9b596754feb657f1130eebd0cc4ac2a5e741518 (diff)
downloadKamon-ddb000a4510dfce20f7090ac92ea9144403addd6.tar.gz
Kamon-ddb000a4510dfce20f7090ac92ea9144403addd6.tar.bz2
Kamon-ddb000a4510dfce20f7090ac92ea9144403addd6.zip
Change withValue to withContext, seems more explicit
Diffstat (limited to 'kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala')
-rw-r--r--kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala b/kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala
index 096ac986..0eaf96db 100644
--- a/kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala
+++ b/kamon-trace/src/test/scala/kamon/ActorMessagePassingTracingSpec.scala
@@ -18,7 +18,7 @@ class ActorMessagePassingTracingSpec extends TestKit(ActorSystem("actor-message-
"the message passing instrumentation" should {
"propagate the TraceContext using bang" in new TraceContextEchoFixture {
- Trace.withValue(testTraceContext) {
+ Trace.withContext(testTraceContext) {
ctxEchoActor ! "test"
}
@@ -26,7 +26,7 @@ class ActorMessagePassingTracingSpec extends TestKit(ActorSystem("actor-message-
}
"propagate the TraceContext using tell" in new TraceContextEchoFixture {
- Trace.withValue(testTraceContext) {
+ Trace.withContext(testTraceContext) {
ctxEchoActor.tell("test", testActor)
}
@@ -35,7 +35,7 @@ class ActorMessagePassingTracingSpec extends TestKit(ActorSystem("actor-message-
"propagate the TraceContext using ask" in new TraceContextEchoFixture {
implicit val timeout = Timeout(1 seconds)
- Trace.withValue(testTraceContext) {
+ Trace.withContext(testTraceContext) {
// The pipe pattern use Futures internally, so FutureTracing test should cover the underpinnings of it.
(ctxEchoActor ? "test") pipeTo(testActor)
}
@@ -44,7 +44,7 @@ class ActorMessagePassingTracingSpec extends TestKit(ActorSystem("actor-message-
}
"propagate the TraceContext to actors behind a router" in new RoutedTraceContextEchoFixture {
- Trace.withValue(testTraceContext) {
+ Trace.withContext(testTraceContext) {
ctxEchoActor ! "test"
}