foundry
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
foundry
tracing
/
foundry.tracing.model
/
buildSpan
build
Span
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.