Skip to content

Commit

Permalink
Merge 37f66c3 into 51037ae
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi77Qi committed Sep 12, 2019
2 parents 51037ae + 37f66c3 commit 88dd538
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ object JsonCodec {
s"projects/${projectTopicName.getProject}/topics/${projectTopicName.getTopic}"
)

implicit val traceIdEncoder: Encoder[TraceId] = Encoder.encodeString.contramap(_.uuid.toString)
implicit val traceIdEncoder: Encoder[TraceId] = Encoder.encodeString.contramap(_.asString)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ package org.broadinstitute.dsde.workbench.model

import java.util.UUID

// uuid for tracing a unique call flow in logging
final case class TraceId(uuid: UUID) extends AnyVal
// unique identifier for tracing a unique call flow in logging
final case class TraceId(asString: String) extends AnyVal

object TraceId {
def apply(uuid: UUID): TraceId = new TraceId(uuid.toString)
}
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")

addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.1.1")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.3.2")

0 comments on commit 88dd538

Please sign in to comment.