diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2013-11-23 21:58:28 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2013-11-23 21:58:28 -0300 |
commit | ddb000a4510dfce20f7090ac92ea9144403addd6 (patch) | |
tree | 3e249637e4282dfa6ebc06b03e96405e0d0bd93e /kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala | |
parent | f9b596754feb657f1130eebd0cc4ac2a5e741518 (diff) | |
download | Kamon-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/FutureTracingSpec.scala')
-rw-r--r-- | kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala b/kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala index 7ff1b96d..1f31d4d2 100644 --- a/kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala +++ b/kamon-trace/src/test/scala/kamon/FutureTracingSpec.scala @@ -20,7 +20,7 @@ class FutureTracingSpec extends WordSpec with Matchers with ScalaFutures with Pa "must be available when executing the future's body" in new TraceContextFixture { var future: Future[Option[TraceContext]] = _ - Trace.withValue(testTraceContext) { + Trace.withContext(testTraceContext) { future = Future(Trace.context) } @@ -32,7 +32,7 @@ class FutureTracingSpec extends WordSpec with Matchers with ScalaFutures with Pa "must be available when executing callbacks on the future" in new TraceContextFixture { var future: Future[Option[TraceContext]] = _ - Trace.withValue(testTraceContext) { + Trace.withContext(testTraceContext) { future = Future("Hello Kamon!") // The TraceContext is expected to be available during all intermediate processing. .map (_.length) |