aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-07-09 00:14:05 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2014-07-09 00:14:05 -0300
commit7371ea60bfa60edcf64c119a969e705aaaa2ae4d (patch)
tree2dbb06753ccb177ee89442d3d3a3bf0ff1090e6a /kamon-core/src/main/resources
parent2a90bdaaec12a3d2157909a2ab8840d81de3c984 (diff)
downloadKamon-7371ea60bfa60edcf64c119a969e705aaaa2ae4d.tar.gz
Kamon-7371ea60bfa60edcf64c119a969e705aaaa2ae4d.tar.bz2
Kamon-7371ea60bfa60edcf64c119a969e705aaaa2ae4d.zip
+ core: log a configurable error message when the application was started with the AspectJ Weaver, closes #48
Diffstat (limited to 'kamon-core/src/main/resources')
-rw-r--r--kamon-core/src/main/resources/META-INF/aop.xml3
-rw-r--r--kamon-core/src/main/resources/reference.conf6
2 files changed, 9 insertions, 0 deletions
diff --git a/kamon-core/src/main/resources/META-INF/aop.xml b/kamon-core/src/main/resources/META-INF/aop.xml
index e1edaed9..07f5cfd1 100644
--- a/kamon-core/src/main/resources/META-INF/aop.xml
+++ b/kamon-core/src/main/resources/META-INF/aop.xml
@@ -2,6 +2,9 @@
<aspectj>
<aspects>
+ <!-- Disable AspectJ Weaver not present error -->
+ <aspect name="kamon.instrumentation.AspectJWeaverMissingWarning"/>
+
<!-- Actors -->
<aspect name="akka.instrumentation.TraceContextIntoRepointableActorRefMixin"/>
<aspect name="akka.instrumentation.TraceContextIntoSystemMessageMixin"/>
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index 3c8f3686..b3df73bf 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -26,6 +26,12 @@ kamon {
# be allocated once and reused it shouldn't impose a memory footprint issue.
default-collection-context-buffer-size = 33792
+ # Disables a big error message that will be typically logged if your application wasn't started
+ # with the -javaagent:/path-to-aspectj-weaver.jar option. If you are only using KamonStandalone
+ # it might be ok for you to turn this error off.
+ disable-aspectj-weaver-missing-error = false
+
+
dispatchers {
# Dispatcher for periodical gauge value recordings.