diff options
Diffstat (limited to 'kamon-trace/src/main/scala/kamon/trace/Segments.scala')
-rw-r--r-- | kamon-trace/src/main/scala/kamon/trace/Segments.scala | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/kamon-trace/src/main/scala/kamon/trace/Segments.scala b/kamon-trace/src/main/scala/kamon/trace/Segments.scala index 7cc20181..0bc68ee7 100644 --- a/kamon-trace/src/main/scala/kamon/trace/Segments.scala +++ b/kamon-trace/src/main/scala/kamon/trace/Segments.scala @@ -19,19 +19,16 @@ package kamon.trace import kamon.trace.Trace.SegmentCompletionHandle object Segments { - + trait Category case object HttpClientRequest extends Category - - case class Start(category: Category, description: String = "", - attributes: Map[String, String] = Map(), timestamp: Long = System.nanoTime()) - - case class End(attributes: Map[String, String] = Map(), timestamp: Long = System.nanoTime()) - - case class Segment(start: Start, end: End) + case class Start(category: Category, description: String = "", + attributes: Map[String, String] = Map(), timestamp: Long = System.nanoTime()) + case class End(attributes: Map[String, String] = Map(), timestamp: Long = System.nanoTime()) + case class Segment(start: Start, end: End) trait SegmentCompletionHandleAware { var completionHandle: Option[SegmentCompletionHandle] |