diff options
author | Diego <diegolparra@gmail.com> | 2015-11-25 00:28:31 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2015-11-25 00:28:31 -0300 |
commit | a49f4138630a459ca7bf7309f114cdfcbbda2598 (patch) | |
tree | 232ddb7c57b354c032d22379763d0100917aba37 /kamon-annotation/src/main/scala | |
parent | 5a26b2a6d14e97198c2a5251415493fb250330fc (diff) | |
download | Kamon-a49f4138630a459ca7bf7309f114cdfcbbda2598.tar.gz Kamon-a49f4138630a459ca7bf7309f114cdfcbbda2598.tar.bz2 Kamon-a49f4138630a459ca7bf7309f114cdfcbbda2598.zip |
! core: Decoupling basic apis from reporters in order to improve Kamon tooling for tests
Diffstat (limited to 'kamon-annotation/src/main/scala')
-rw-r--r-- | kamon-annotation/src/main/scala/kamon/annotation/AnnotationExtension.scala (renamed from kamon-annotation/src/main/scala/kamon/annotation/Annotation.scala) | 6 | ||||
-rw-r--r-- | kamon-annotation/src/main/scala/kamon/annotation/instrumentation/AnnotationInstrumentation.scala | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/kamon-annotation/src/main/scala/kamon/annotation/Annotation.scala b/kamon-annotation/src/main/scala/kamon/annotation/AnnotationExtension.scala index 4a1eed94..21774865 100644 --- a/kamon-annotation/src/main/scala/kamon/annotation/Annotation.scala +++ b/kamon-annotation/src/main/scala/kamon/annotation/AnnotationExtension.scala @@ -15,13 +15,11 @@ package kamon.annotation -import akka.actor.{ ExtendedActorSystem, Extension, ExtensionId, ExtensionIdProvider } -import akka.event.Logging import kamon.Kamon -import org.slf4j.LoggerFactory +import kamon.util.logger.LazyLogger object AnnotationExtension { - val log = LoggerFactory.getLogger("kamon.annotation.Annotation") + val log = LazyLogger("kamon.annotation.Annotation") val config = Kamon.config.getConfig("kamon.annotation") val arraySize = config.getInt("instruments-array-size") diff --git a/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/AnnotationInstrumentation.scala b/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/AnnotationInstrumentation.scala index e5d1aff9..e82c5725 100644 --- a/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/AnnotationInstrumentation.scala +++ b/kamon-annotation/src/main/scala/kamon/annotation/instrumentation/AnnotationInstrumentation.scala @@ -16,13 +16,12 @@ package kamon.annotation.instrumentation -import kamon.Kamon +import java.util.concurrent.atomic.AtomicReferenceArray import kamon.annotation._ import kamon.metric.instrument -import kamon.metric.instrument.{ MinMaxCounter, Counter } +import kamon.metric.instrument.{ Counter, MinMaxCounter } import org.aspectj.lang.annotation._ import org.aspectj.lang.{ JoinPoint, ProceedingJoinPoint } -import java.util.concurrent.atomic.AtomicReferenceArray @Aspect class AnnotationInstrumentation extends BaseAnnotationInstrumentation { |