aboutsummaryrefslogtreecommitdiff
path: root/kamon-annotation/src/main/resources
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2015-02-07 14:26:26 -0300
committerDiego <diegolparra@gmail.com>2015-03-01 18:44:04 -0300
commit2cc7eeee6fe31a4dfd479f3c0abf1085c7bbf879 (patch)
treeba75d454858f4d020e79b084c5166e300962a437 /kamon-annotation/src/main/resources
parent0f2f2be4e4fc44a512ed79ab09f0d83d3fd0e871 (diff)
downloadKamon-2cc7eeee6fe31a4dfd479f3c0abf1085c7bbf879.tar.gz
Kamon-2cc7eeee6fe31a4dfd479f3c0abf1085c7bbf879.tar.bz2
Kamon-2cc7eeee6fe31a4dfd479f3c0abf1085c7bbf879.zip
! kamon-annotation: defined instruments @Trace @Segment @Gauge @Timed @Counted @Histogram and full implemetation
Diffstat (limited to 'kamon-annotation/src/main/resources')
-rw-r--r--kamon-annotation/src/main/resources/META-INF/aop.xml18
-rw-r--r--kamon-annotation/src/main/resources/reference.conf19
2 files changed, 37 insertions, 0 deletions
diff --git a/kamon-annotation/src/main/resources/META-INF/aop.xml b/kamon-annotation/src/main/resources/META-INF/aop.xml
new file mode 100644
index 00000000..b017e60e
--- /dev/null
+++ b/kamon-annotation/src/main/resources/META-INF/aop.xml
@@ -0,0 +1,18 @@
+<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
+
+<aspectj>
+ <aspects>
+ <aspect name="kamon.annotation.instrumentation.ClassToAnnotationInstrumentsMixin"/>
+ <aspect name="kamon.annotation.instrumentation.AnnotationInstrumentation"/>
+ <aspect name="kamon.annotation.instrumentation.StaticAnnotationInstrumentation"/>
+ </aspects>
+ <weaver options="-warn:none">
+ <!-- exclude some commons packages -->
+ <exclude within="org.apache.commons..*"/>
+ <exclude within="org.apache.log4j..*"/>
+ <exclude within="org.hibernate..*"/>
+ <exclude within="org.springframework..*"/>
+ <exclude within="com.google..*"/>
+ <exclude within="*..*CGLIB*" />
+ </weaver>
+</aspectj>
diff --git a/kamon-annotation/src/main/resources/reference.conf b/kamon-annotation/src/main/resources/reference.conf
new file mode 100644
index 00000000..b7680022
--- /dev/null
+++ b/kamon-annotation/src/main/resources/reference.conf
@@ -0,0 +1,19 @@
+# ========================================= #
+# Kamon-Annotation Reference Configuration #
+# ========================================= #
+
+kamon {
+ annotation {
+ # We use two arrays to store the kamon instruments in order to do fast array lookups.
+ # These lookups are done using the getId() method on the JoinPoint.StaticPart object.
+ # The ids for all affected join points within a target type are unique (and start from 0).
+ instruments-array-size = 32
+ }
+ modules {
+ kamon-annotation {
+ auto-start = yes
+ requires-aspectj = yes
+ extension-id = "kamon.annotation.Annotation"
+ }
+ }
+}