blob: d227404ab8b17e84d23aac63793ff150cf415795 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package kamon.instrumentation
import _root_.akka.event.EventStream
import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.{Around, Pointcut, Aspect}
@Aspect
class AspectJWeaverMissingWarning {
@Pointcut("execution(* kamon.metric.MetricsExtension.printInitializationMessage(..)) && args(eventStream, *)")
def printInitializationMessage(eventStream: EventStream): Unit = {}
@Around("printInitializationMessage(eventStream)")
def aroundPrintInitializationMessage(pjp: ProceedingJoinPoint, eventStream: EventStream): Unit = {
pjp.proceed(Array[AnyRef](eventStream, Boolean.box(true)))
}
}
|