resolveTraceId

fun resolveTraceId(traceId: String?): String

Returns traceId when it is non-blank, otherwise generates a fresh UUID.