aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2015-04-17 19:11:41 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2015-04-17 19:11:41 +0200
commiteb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf (patch)
tree57784857799de642dcd76be931027cf04cb56f67 /kamon-core/src/test/scala
parent2731db2910827f0bf22484d0e5603788795b69f9 (diff)
downloadKamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.tar.gz
Kamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.tar.bz2
Kamon-eb07f2f0b583c759e9cfaba27e3bcddeaf05a4cf.zip
= core: add commodity trace context manipulation methods to the Tracer.
Diffstat (limited to 'kamon-core/src/test/scala')
-rw-r--r--kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala b/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
index e7b18770..cb909ad9 100644
--- a/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
+++ b/kamon-core/src/test/scala/kamon/testkit/BaseKamonSpec.scala
@@ -20,13 +20,11 @@ import akka.testkit.{ ImplicitSender, TestKitBase }
import akka.actor.ActorSystem
import com.typesafe.config.{ Config, ConfigFactory }
import kamon.Kamon
-import kamon.metric.{ Entity, SubscriptionsDispatcher, EntitySnapshot, MetricsImpl }
+import kamon.metric.{ Entity, SubscriptionsDispatcher, EntitySnapshot }
import kamon.trace.TraceContext
import kamon.util.LazyActorRef
import org.scalatest.{ BeforeAndAfterAll, Matchers, WordSpecLike }
-import scala.reflect.ClassTag
-
abstract class BaseKamonSpec(actorSystemName: String) extends TestKitBase with WordSpecLike with Matchers with ImplicitSender with BeforeAndAfterAll {
lazy val collectionContext = Kamon.metrics.buildDefaultCollectionContext
implicit lazy val system: ActorSystem = {
@@ -41,7 +39,7 @@ abstract class BaseKamonSpec(actorSystemName: String) extends TestKitBase with W
Kamon.tracer.newContext(name)
def newContext(name: String, token: String): TraceContext =
- Kamon.tracer.newContext(name, token)
+ Kamon.tracer.newContext(name, Option(token))
def takeSnapshotOf(name: String, category: String): EntitySnapshot = {
val recorder = Kamon.metrics.find(name, category).get