aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources/META-INF/aop.xml
blob: ee2af95a8f23d0f6332eaed52dc05f8b3ef6ed8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">

<aspectj>
  <aspects>
    <!-- Disable AspectJ Weaver not present error -->
    <aspect name="kamon.instrumentation.AspectJWeaverMissingWarning"/>

    <!-- Actors -->
    <aspect name="akka.instrumentation.TraceContextIntoRepointableActorRefMixin"/>
    <aspect name="akka.instrumentation.TraceContextIntoSystemMessageMixin"/>
    <aspect name="akka.instrumentation.ActorSystemMessageInstrumentation"/>
    <aspect name="akka.instrumentation.TraceContextIntoEnvelopeMixin"/>
    <aspect name="akka.instrumentation.ActorCellMetricsIntoActorCellMixin"/>
    <aspect name="akka.instrumentation.ActorCellInstrumentation"/>
    <aspect name="akka.instrumentation.ActorLoggingInstrumentation"/>

    <!-- Remoting and Cluster -->
    <aspect name="akka.remote.instrumentation.RemotingInstrumentation"/>

    <!-- Dispatchers -->
    <aspect name="akka.instrumentation.DispatcherInstrumentation"/>
    <aspect name="akka.instrumentation.DispatcherMetricCollectionInfoIntoDispatcherMixin"/>

    <!-- Futures -->
    <aspect name="kamon.instrumentation.scala.FutureInstrumentation"/>
    <aspect name="kamon.instrumentation.scalaz.FutureInstrumentation"/>

    <!-- Patterns -->
    <aspect name="akka.instrumentation.AskPatternInstrumentation"/>
  </aspects>

  <weaver>
    <include within="scala.concurrent..*"/>
    <include within="scalaz.concurrent..*"/>
    <include within="akka..*"/>
    <include within="spray..*"/>
    <include within="kamon..*"/>

    <!-- For some weird reason ByteString produces a java.lang.VerifyError after going through the weaver. -->
    <exclude within="akka.util.ByteString"/>
    <!-- Exclude CallingThreadDispatcher, is only for test purposes -->
    <exclude within="akka.testkit.CallingThreadDispatcher"/>
  </weaver>

</aspectj>