diff options
Diffstat (limited to 'kamon-scala/src/main')
-rw-r--r-- | kamon-scala/src/main/scala/kamon/scala/instrumentation/FutureInstrumentation.scala | 4 | ||||
-rw-r--r-- | kamon-scala/src/main/scala/kamon/scalaz/instrumentation/FutureInstrumentation.scala | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kamon-scala/src/main/scala/kamon/scala/instrumentation/FutureInstrumentation.scala b/kamon-scala/src/main/scala/kamon/scala/instrumentation/FutureInstrumentation.scala index 01514869..18ca58be 100644 --- a/kamon-scala/src/main/scala/kamon/scala/instrumentation/FutureInstrumentation.scala +++ b/kamon-scala/src/main/scala/kamon/scala/instrumentation/FutureInstrumentation.scala @@ -16,7 +16,7 @@ package kamon.scala.instrumentation -import kamon.trace.{ TraceContext, TraceContextAware } +import kamon.trace.{ Tracer, TraceContextAware } import org.aspectj.lang.ProceedingJoinPoint import org.aspectj.lang.annotation._ @@ -40,7 +40,7 @@ class FutureInstrumentation { @Around("futureRelatedRunnableExecution(runnable)") def aroundExecution(pjp: ProceedingJoinPoint, runnable: TraceContextAware): Any = { - TraceContext.withContext(runnable.traceContext) { + Tracer.withContext(runnable.traceContext) { pjp.proceed() } } diff --git a/kamon-scala/src/main/scala/kamon/scalaz/instrumentation/FutureInstrumentation.scala b/kamon-scala/src/main/scala/kamon/scalaz/instrumentation/FutureInstrumentation.scala index b5aadbd3..862d7fdd 100644 --- a/kamon-scala/src/main/scala/kamon/scalaz/instrumentation/FutureInstrumentation.scala +++ b/kamon-scala/src/main/scala/kamon/scalaz/instrumentation/FutureInstrumentation.scala @@ -16,7 +16,7 @@ package kamon.scalaz.instrumentation -import kamon.trace.{ TraceContext, TraceContextAware } +import kamon.trace.{ Tracer, TraceContextAware } import org.aspectj.lang.ProceedingJoinPoint import org.aspectj.lang.annotation._ @@ -40,7 +40,7 @@ class FutureInstrumentation { @Around("futureRelatedCallableExecution(callable)") def aroundExecution(pjp: ProceedingJoinPoint, callable: TraceContextAware): Any = - TraceContext.withContext(callable.traceContext) { + Tracer.withContext(callable.traceContext) { pjp.proceed() } |