diff options
Diffstat (limited to 'kamon-core/src/main/scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index ab9ce05e..231fc530 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -58,6 +58,12 @@ object Kamon { def start(): Unit = start(ConfigFactory.load) + def shutdown(): Unit = { + _coreComponents = None + _system.shutdown() + _system = null + } + def metrics: MetricsExtension = ifStarted(_.metrics) |