diff options
author | Diego Parra <diegolparra@gmail.com> | 2013-05-29 23:36:28 -0300 |
---|---|---|
committer | Diego Parra <diegolparra@gmail.com> | 2013-05-29 23:36:28 -0300 |
commit | b4ae12153f7c971ef13c9048584fd0b611de5e2d (patch) | |
tree | cfc9315f3c6d100c3f95677b4f47682f6b41b4e4 /src/main/scala/kamon/instrumentation | |
parent | 03487dbfcaa9c5295c9735018e1a9a2bd728c780 (diff) | |
download | Kamon-b4ae12153f7c971ef13c9048584fd0b611de5e2d.tar.gz Kamon-b4ae12153f7c971ef13c9048584fd0b611de5e2d.tar.bz2 Kamon-b4ae12153f7c971ef13c9048584fd0b611de5e2d.zip |
WIP: aspects refactor
Diffstat (limited to 'src/main/scala/kamon/instrumentation')
-rw-r--r-- | src/main/scala/kamon/instrumentation/TraceContextHolder.java | 17 | ||||
-rw-r--r-- | src/main/scala/kamon/instrumentation/TraceContextHolder.scala | 8 |
2 files changed, 8 insertions, 17 deletions
diff --git a/src/main/scala/kamon/instrumentation/TraceContextHolder.java b/src/main/scala/kamon/instrumentation/TraceContextHolder.java deleted file mode 100644 index 529ce86a..00000000 --- a/src/main/scala/kamon/instrumentation/TraceContextHolder.java +++ /dev/null @@ -1,17 +0,0 @@ -package kamon.instrumentation; -import scala.Option; -import kamon.TraceContext; - -abstract public class TraceContextHolder implements Runnable { - public final Option<TraceContext> context; - - public TraceContextHolder() { - context = TraceContext.current(); - } - - public Option<TraceContext> getContext() { - return context; - } - - -}
\ No newline at end of file diff --git a/src/main/scala/kamon/instrumentation/TraceContextHolder.scala b/src/main/scala/kamon/instrumentation/TraceContextHolder.scala new file mode 100644 index 00000000..b44547dd --- /dev/null +++ b/src/main/scala/kamon/instrumentation/TraceContextHolder.scala @@ -0,0 +1,8 @@ +package kamon.instrumentation; + +import kamon.TraceContext; +import scala.Option; + +class TraceContextHolder { + final val context:Option[TraceContext] = TraceContext.current +}
\ No newline at end of file |