toggle menu
foundry
jvm
switch theme
search in API
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.