diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-05-18 22:15:27 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-05-18 22:15:27 -0300 |
commit | c4b8ecb87381abe8224c247d399fd2a2bdd0372c (patch) | |
tree | 614ddbb4c5a9c4e4cc4a867964382c3f60611530 /kamon-core/src/main/scala/kamon | |
parent | ace4d9d09097aa9b7e032d5bfbe154dcf73f74ed (diff) | |
download | Kamon-c4b8ecb87381abe8224c247d399fd2a2bdd0372c.tar.gz Kamon-c4b8ecb87381abe8224c247d399fd2a2bdd0372c.tar.bz2 Kamon-c4b8ecb87381abe8224c247d399fd2a2bdd0372c.zip |
+ core: allow dispatcher configuration to core components
Diffstat (limited to 'kamon-core/src/main/scala/kamon')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metrics/MetricsExtension.scala | 4 | ||||
-rw-r--r-- | kamon-core/src/main/scala/kamon/util/Contexts.scala | 24 |
2 files changed, 1 insertions, 27 deletions
diff --git a/kamon-core/src/main/scala/kamon/metrics/MetricsExtension.scala b/kamon-core/src/main/scala/kamon/metrics/MetricsExtension.scala index 78a82d96..c60babb2 100644 --- a/kamon-core/src/main/scala/kamon/metrics/MetricsExtension.scala +++ b/kamon-core/src/main/scala/kamon/metrics/MetricsExtension.scala @@ -19,7 +19,7 @@ package kamon.metrics import scala.collection.concurrent.TrieMap import akka.actor._ import com.typesafe.config.Config -import kamon.util.{ Contexts, GlobPathFilter } +import kamon.util.GlobPathFilter import kamon.Kamon import akka.actor import kamon.metrics.Metrics.MetricGroupFilter @@ -92,8 +92,6 @@ class MetricsExtension(system: ExtendedActorSystem) extends Kamon.Extension { allFilters.toMap } - - val defaultDispatcher = Contexts.lookupExecutionContext(Contexts.kamonDefaultDispatcher)(system) } object Metrics extends ExtensionId[MetricsExtension] with ExtensionIdProvider { diff --git a/kamon-core/src/main/scala/kamon/util/Contexts.scala b/kamon-core/src/main/scala/kamon/util/Contexts.scala deleted file mode 100644 index be0d367e..00000000 --- a/kamon-core/src/main/scala/kamon/util/Contexts.scala +++ /dev/null @@ -1,24 +0,0 @@ -package kamon.util - -import akka.actor.ActorSystem - -/* - * ========================================================================================= - * Copyright © 2013-2014 the kamon project <http://kamon.io/> - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the - * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - * either express or implied. See the License for the specific language governing permissions - * and limitations under the License. - * ========================================================================================= - */ -object Contexts { - val kamonDefaultDispatcher = "kamon.default-dispatcher" - - def lookupExecutionContext(id: String)(implicit system: ActorSystem) = system.dispatchers.lookup(id) -} |