diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2018-01-30 15:29:33 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2018-01-30 15:41:54 +0100 |
commit | 083c31cb0eb18dce4f2a46d52b3606a92128230b (patch) | |
tree | a2e263b111b279128c1802c5333970f58656699e /kamon-core/src/main/scala/kamon/ReporterRegistry.scala | |
parent | 4ab94c41bf5bd157d5ff1639ca5635ac5d98a3e4 (diff) | |
download | Kamon-083c31cb0eb18dce4f2a46d52b3606a92128230b.tar.gz Kamon-083c31cb0eb18dce4f2a46d52b3606a92128230b.tar.bz2 Kamon-083c31cb0eb18dce4f2a46d52b3606a92128230b.zip |
turn all Kamon threads into daemon threads, except for reporters, fixes #502
Diffstat (limited to 'kamon-core/src/main/scala/kamon/ReporterRegistry.scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/ReporterRegistry.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/ReporterRegistry.scala b/kamon-core/src/main/scala/kamon/ReporterRegistry.scala index bd28e871..92465de8 100644 --- a/kamon-core/src/main/scala/kamon/ReporterRegistry.scala +++ b/kamon-core/src/main/scala/kamon/ReporterRegistry.scala @@ -67,7 +67,7 @@ object ReporterRegistry { private[kamon] class Default(metrics: MetricsSnapshotGenerator, initialConfig: Config, clock: Clock) extends ReporterRegistry with SpanSink { private val logger = LoggerFactory.getLogger(classOf[ReporterRegistry]) - private val registryExecutionContext = Executors.newScheduledThreadPool(2, threadFactory("kamon-reporter-registry")) + private val registryExecutionContext = Executors.newScheduledThreadPool(2, threadFactory("kamon-reporter-registry", daemon = true)) private val reporterCounter = new AtomicLong(0L) private var registryConfiguration = readRegistryConfiguration(initialConfig) |