aboutsummaryrefslogtreecommitdiff
path: root/kamon-metrics/src
diff options
context:
space:
mode:
authorIvan Topolnak <itopolnak@despegar.com>2014-01-02 18:09:53 -0300
committerIvan Topolnak <itopolnak@despegar.com>2014-01-13 17:37:20 -0300
commit7a10c0ef2a6566229e8571f6d385ca2ff794cc20 (patch)
treececd7ce6eb7a71f967eaa1605615780fa94d346c /kamon-metrics/src
parent54143e4af6182b967736abc60a7fb20c88dd6587 (diff)
downloadKamon-7a10c0ef2a6566229e8571f6d385ca2ff794cc20.tar.gz
Kamon-7a10c0ef2a6566229e8571f6d385ca2ff794cc20.tar.bz2
Kamon-7a10c0ef2a6566229e8571f6d385ca2ff794cc20.zip
integrate trace and metrics into the base project
Diffstat (limited to 'kamon-metrics/src')
-rw-r--r--kamon-metrics/src/main/scala/kamon/Metrics.scala33
-rw-r--r--kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala31
2 files changed, 0 insertions, 64 deletions
diff --git a/kamon-metrics/src/main/scala/kamon/Metrics.scala b/kamon-metrics/src/main/scala/kamon/Metrics.scala
deleted file mode 100644
index c7d57f13..00000000
--- a/kamon-metrics/src/main/scala/kamon/Metrics.scala
+++ /dev/null
@@ -1,33 +0,0 @@
-/* ===================================================
- * Copyright © 2013 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.
- * ========================================================== */
-package kamon
-
-import com.codahale.metrics.MetricRegistry
-import com.typesafe.config.ConfigFactory
-import akka.actor.{ ActorRef, ExtendedActorSystem, ExtensionIdProvider, ExtensionId }
-import kamon.Kamon.Extension
-import akka.actor
-
-object Metrics extends ExtensionId[MetricsExtension] with ExtensionIdProvider {
- def lookup(): ExtensionId[_ <: actor.Extension] = Metrics
- def createExtension(system: ExtendedActorSystem): MetricsExtension = new MetricsExtension(system)
-
-}
-
-class MetricsExtension(system: ExtendedActorSystem) extends Kamon.Extension {
- def manager: ActorRef = ???
-}
-
diff --git a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala b/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala
deleted file mode 100644
index 5108af25..00000000
--- a/kamon-metrics/src/test/scala/kamon/MailboxSizeMetricsSpec.scala
+++ /dev/null
@@ -1,31 +0,0 @@
-/* ===================================================
- * Copyright © 2013 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.
- * ========================================================== */
-package kamon
-
-import org.scalatest.{ WordSpecLike, WordSpec }
-import akka.testkit.TestKit
-import akka.actor.{ Props, ActorSystem }
-
-class MailboxSizeMetricsSpec extends TestKit(ActorSystem("mailbox-size-metrics-spec")) with WordSpecLike {
-
- "the mailbox size metrics instrumentation" should {
- "register a counter for mailbox size upon actor creation" in {
- val target = system.actorOf(Props.empty, "sample")
-
- //Metrics.registry.getHistograms.get("akka://mailbox-size-metrics-spec/sample:MAILBOX")
- }
- }
-}