From aa1980de105ce128ba75099815f97de3d0d4b552 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Fri, 30 Jan 2015 03:25:54 +0100 Subject: + all: use ModuleSupervisor init all auto-start modules. The new ModuleSupervisor implementation will make use of special configuration keys under the `kamon.modules` section to detect all the available modules in the classpath and do two things with that info: 1. Log the AspectJ Weaver missing error if any of the available modules requires AspectJ. 2. Start all available modules that are marked with the auto-start setting. --- kamon-newrelic/src/main/resources/reference.conf | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kamon-newrelic/src/main') diff --git a/kamon-newrelic/src/main/resources/reference.conf b/kamon-newrelic/src/main/resources/reference.conf index dd112aeb..9dc793e1 100644 --- a/kamon-newrelic/src/main/resources/reference.conf +++ b/kamon-newrelic/src/main/resources/reference.conf @@ -24,6 +24,14 @@ kamon { # delay between connection attempts to NewRelic collector connect-retry-delay = 30 seconds } + + modules { + kamon-newrelic { + auto-start = yes + requires-aspectj = no + extension-id = "kamon.newrelic.NewRelic" + } + } } -- cgit v1.2.3