diff options
author | Diego <diegolparra@gmail.com> | 2014-12-17 14:19:23 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-12-17 14:19:23 -0300 |
commit | b8c6a19f5c4ca707cc7b6e22811b8ed579857376 (patch) | |
tree | 969f9496afd76ded9e643456109a7918d7061134 /kamon-core/src/main/scala/kamon/trace | |
parent | 7604bee52af0a75409a2604d0ea9adabc6b4bc57 (diff) | |
download | Kamon-b8c6a19f5c4ca707cc7b6e22811b8ed579857376.tar.gz Kamon-b8c6a19f5c4ca707cc7b6e22811b8ed579857376.tar.bz2 Kamon-b8c6a19f5c4ca707cc7b6e22811b8ed579857376.zip |
= core: avoid unnecesary allocation when askPatternTimeoutWarning is off
Diffstat (limited to 'kamon-core/src/main/scala/kamon/trace')
-rw-r--r-- | kamon-core/src/main/scala/kamon/trace/TraceExtension.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/trace/TraceExtension.scala b/kamon-core/src/main/scala/kamon/trace/TraceExtension.scala index c227ce58..41f022d0 100644 --- a/kamon-core/src/main/scala/kamon/trace/TraceExtension.scala +++ b/kamon-core/src/main/scala/kamon/trace/TraceExtension.scala @@ -27,8 +27,7 @@ import kamon.util.GlobPathFilter class TraceExtension(system: ExtendedActorSystem) extends Kamon.Extension { val config = system.settings.config.getConfig("kamon.trace") - val askPatternTracing = config.getString("ask-pattern-tracing") - val defaultDispatcher = system.dispatchers.lookup(config.getString("dispatcher")) + val dispatcher = system.dispatchers.lookup(config.getString("dispatcher")) val detailLevel: LevelOfDetail = config.getString("level") match { case "metrics-only" ⇒ LevelOfDetail.MetricsOnly |