diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-18 16:21:44 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-05-18 16:21:44 +0200 |
commit | 77f2666650726352a9e15dcf6019064d91393b2e (patch) | |
tree | c39f7e2a18ac6bb1fcd1e2cc73dd3c165919515e /kamon-core/src/main/scala/kamon/Kamon.scala | |
parent | 5dee54a0794b282e9b5729a3d4b85478c12a68d1 (diff) | |
download | Kamon-77f2666650726352a9e15dcf6019064d91393b2e.tar.gz Kamon-77f2666650726352a9e15dcf6019064d91393b2e.tar.bz2 Kamon-77f2666650726352a9e15dcf6019064d91393b2e.zip |
some more wip
Diffstat (limited to 'kamon-core/src/main/scala/kamon/Kamon.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index 316a9a24..317920f4 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -1,8 +1,7 @@ package kamon import com.typesafe.config.{Config, ConfigFactory} -import kamon.metric.instrument.Histogram -import kamon.metric.{Entity, EntityRecorder, RecorderRegistry, RecorderRegistryImpl} +import kamon.metric.{RecorderRegistry, RecorderRegistryImpl} import kamon.trace.Tracer /** @@ -15,7 +14,9 @@ import kamon.trace.Tracer object Kamon { private val recorderRegistry = new RecorderRegistryImpl(ConfigFactory.load()) private val reporterRegistry = new ReporterRegistryImpl(recorderRegistry, ConfigFactory.load()) + private val kamonTracer = new Tracer(recorderRegistry, reporterRegistry) + def tracer: io.opentracing.Tracer = kamonTracer def metrics: RecorderRegistry = recorderRegistry def reporters: ReporterRegistry = reporterRegistry @@ -24,13 +25,9 @@ object Kamon { reporterRegistry.reconfigure(config) } - - def tracer: Tracer = ??? def environment: Environment = ??? def diagnose: Diagnostic = ??? def util: Util = ??? - - } |