diff options
Diffstat (limited to 'kamon-trace/src/main/scala/kamon/trace/instrumentation')
-rw-r--r-- | kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingTracing.scala (renamed from kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingInstrumentation.scala) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingInstrumentation.scala b/kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingTracing.scala index fecdc7e3..9a9460b7 100644 --- a/kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingInstrumentation.scala +++ b/kamon-trace/src/main/scala/kamon/trace/instrumentation/ActorLoggingTracing.scala @@ -6,17 +6,16 @@ import org.slf4j.MDC import kamon.trace.{TraceContext, ContextAware, Trace} @Aspect -class ActorLoggingInstrumentation { - +class ActorLoggingTracing { @DeclareMixin("akka.event.Logging.LogEvent+") - def traceContextMixin: ContextAware = ContextAware.default + def mixin: ContextAware = ContextAware.default @Pointcut("execution(* akka.event.slf4j.Slf4jLogger.withMdc(..)) && args(logSource, logEvent, logStatement)") def withMdcInvocation(logSource: String, logEvent: ContextAware, logStatement: () => _): Unit = {} @Around("withMdcInvocation(logSource, logEvent, logStatement)") - def putTraceContextInMDC(pjp: ProceedingJoinPoint, logSource: String, logEvent: ContextAware, logStatement: () => _): Unit = { + def aroundWithMdcInvocation(pjp: ProceedingJoinPoint, logSource: String, logEvent: ContextAware, logStatement: () => _): Unit = { logEvent.traceContext match { case Some(ctx) => MDC.put("uow", ctx.uow) |