blob: ecc2ba33b63fad15a38e8e8d66076f6d0877ad97 (
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()}%016x${Random.nextLong()}%016x",
f"${Random.nextLong()}%016x"
)
}
|