diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-21 09:23:07 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-21 10:37:08 +0200 |
commit | a152a3098b564ed43766a857b32b7c7d7445f9ce (patch) | |
tree | 7651f61e598f316ee9dca415c5a5c67ce530bad5 /kamon-core/src/main/scala/kamon/Kamon.scala | |
parent | 3cb974e5dfd381b9b28ffef9977047cf35242121 (diff) | |
download | Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.gz Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.bz2 Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.zip |
binary encoding of context and entries
Diffstat (limited to 'kamon-core/src/main/scala/kamon/Kamon.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index 2c0561e2..f251b1ec 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -24,7 +24,7 @@ import scala.concurrent.Future import java.time.Duration import java.util.concurrent.{Executors, ScheduledExecutorService, ScheduledThreadPoolExecutor} -import kamon.context.{Codec, Context, Storage} +import kamon.context.{Codecs, Context, Storage} import org.slf4j.LoggerFactory import scala.util.Try @@ -39,10 +39,10 @@ object Kamon extends MetricLookup with ReporterRegistry with Tracer { private val _scheduler = Executors.newScheduledThreadPool(schedulerPoolSize(_config), numberedThreadFactory("kamon-scheduler")) private val _metrics = new MetricRegistry(_config, _scheduler) - private val _reporters = new ReporterRegistryImpl(_metrics, _config) - private val _tracer = Tracer.Default(Kamon, _reporters, _config) + private val _reporterRegistry = new ReporterRegistry.Default(_metrics, _config) + private val _tracer = Tracer.Default(Kamon, _reporterRegistry, _config) private val _contextStorage = Storage.ThreadLocal() - private val _contextCodec = new Codec(_config) + private val _contextCodec = new Codecs(_config) private var _onReconfigureHooks = Seq.empty[OnReconfigureHook] def environment: Environment = @@ -56,7 +56,7 @@ object Kamon extends MetricLookup with ReporterRegistry with Tracer { _environment = Environment.fromConfig(config) _filters = Filters.fromConfig(config) _metrics.reconfigure(config) - _reporters.reconfigure(config) + _reporterRegistry.reconfigure(config) _tracer.reconfigure(config) _contextCodec.reconfigure(config) @@ -100,7 +100,7 @@ object Kamon extends MetricLookup with ReporterRegistry with Tracer { override def identityProvider: IdentityProvider = _tracer.identityProvider - def contextCodec(): Codec = + def contextCodec(): Codecs = _contextCodec def currentContext(): Context = @@ -120,22 +120,22 @@ object Kamon extends MetricLookup with ReporterRegistry with Tracer { override def loadReportersFromConfig(): Unit = - _reporters.loadReportersFromConfig() + _reporterRegistry.loadReportersFromConfig() override def addReporter(reporter: MetricReporter): Registration = - _reporters.addReporter(reporter) + _reporterRegistry.addReporter(reporter) override def addReporter(reporter: MetricReporter, name: String): Registration = - _reporters.addReporter(reporter, name) + _reporterRegistry.addReporter(reporter, name) override def addReporter(reporter: SpanReporter): Registration = - _reporters.addReporter(reporter) + _reporterRegistry.addReporter(reporter) override def addReporter(reporter: SpanReporter, name: String): Registration = - _reporters.addReporter(reporter, name) + _reporterRegistry.addReporter(reporter, name) override def stopAllReporters(): Future[Unit] = - _reporters.stopAllReporters() + _reporterRegistry.stopAllReporters() def filter(filterName: String, pattern: String): Boolean = _filters.accept(filterName, pattern) |