aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/ReporterRegistry.scala
diff options
context:
space:
mode:
authorDiego Parra <diegolparra@gmail.com>2018-01-30 20:30:36 -0300
committerGitHub <noreply@github.com>2018-01-30 20:30:36 -0300
commit50e87dc33fc468628f04f6c18139cf2e6f466100 (patch)
tree21c9e11312634d9ad4e8669ab1813a0efce5ff15 /kamon-core/src/main/scala/kamon/ReporterRegistry.scala
parent8231d18493e33c44668e4e5a5d45034f155f64e8 (diff)
parent083c31cb0eb18dce4f2a46d52b3606a92128230b (diff)
downloadKamon-50e87dc33fc468628f04f6c18139cf2e6f466100.tar.gz
Kamon-50e87dc33fc468628f04f6c18139cf2e6f466100.tar.bz2
Kamon-50e87dc33fc468628f04f6c18139cf2e6f466100.zip
Merge pull request #508 from ivantopo/issue#502/allow-jvm-to-shutdown-when-no-reporters
turn all Kamon threads into daemon threads, except for reporters
Diffstat (limited to 'kamon-core/src/main/scala/kamon/ReporterRegistry.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/ReporterRegistry.scala2
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)