buildSpan

fun buildSpan(name: String, startTimestampMicros: Long, durationMicros: Long, traceId: ByteString = makeId(), parentId: ByteString = ByteString.EMPTY, addTags: TagBuilder.() -> Unit = {}): Span(source)

Creates a span. If no trace ID is specified, a random one is generated.