blob: 58ab973b29a6ff3e44620e5872c649d4e6e17cce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package xyz.driver.core
package reporting
import scala.util.Random
case class SpanContext private[core] (traceId: String, spanId: String)
object SpanContext {
def fresh() = SpanContext(
f"${Random.nextLong()}%02x${Random.nextLong()}%02x",
f"${Random.nextLong()}%02x"
)
}
|