aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/Kamon.scala
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2017-05-18 16:21:44 +0200
committerIvan Topolnjak <ivantopo@gmail.com>2017-05-18 16:21:44 +0200
commit77f2666650726352a9e15dcf6019064d91393b2e (patch)
treec39f7e2a18ac6bb1fcd1e2cc73dd3c165919515e /kamon-core/src/main/scala/kamon/Kamon.scala
parent5dee54a0794b282e9b5729a3d4b85478c12a68d1 (diff)
downloadKamon-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.scala9
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 = ???
-
-
}