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 | ef0efc23b3b408a11fb52c77366bcd10ba66327a (patch) | |
tree | 4ad97f5de827b108eff3aa1d6e6c2ef961a65ae2 /kamon-core/src/main/scala/kamon/trace/TraceExtension.scala | |
parent | 049b2822c569b4ea0b0c4c073631bdc0a340264d (diff) | |
download | Kamon-ef0efc23b3b408a11fb52c77366bcd10ba66327a.tar.gz Kamon-ef0efc23b3b408a11fb52c77366bcd10ba66327a.tar.bz2 Kamon-ef0efc23b3b408a11fb52c77366bcd10ba66327a.zip |
= core: avoid unnecesary allocation when askPatternTimeoutWarning is off
Diffstat (limited to 'kamon-core/src/main/scala/kamon/trace/TraceExtension.scala')
-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 |