public static class SpanSnapshot.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SpanSnapshot |
build() |
SpanSnapshot.Builder |
children(List<SpanSnapshot> children)
An array of child span snapshots.
|
SpanSnapshot.Builder |
copy(SpanSnapshot model) |
SpanSnapshot.Builder |
key(String key)
Unique identifier (spanId) for the trace span.
|
SpanSnapshot.Builder |
spanName(String spanName)
Span name associated with the trace.
|
SpanSnapshot.Builder |
spanSnapshotDetails(List<SnapshotDetail> spanSnapshotDetails)
Span snapshots properties.
|
SpanSnapshot.Builder |
threadSnapshots(List<ThreadSnapshot> threadSnapshots)
Thread snapshots.
|
SpanSnapshot.Builder |
timeEnded(Date timeEnded)
End time of the span.
|
SpanSnapshot.Builder |
timeStarted(Date timeStarted)
Start time of the span.
|
public SpanSnapshot.Builder key(String key)
Unique identifier (spanId) for the trace span.
key
- the value to setpublic SpanSnapshot.Builder spanName(String spanName)
Span name associated with the trace.
spanName
- the value to setpublic SpanSnapshot.Builder timeStarted(Date timeStarted)
Start time of the span.
timeStarted
- the value to setpublic SpanSnapshot.Builder timeEnded(Date timeEnded)
End time of the span.
timeEnded
- the value to setpublic SpanSnapshot.Builder spanSnapshotDetails(List<SnapshotDetail> spanSnapshotDetails)
Span snapshots properties.
spanSnapshotDetails
- the value to setpublic SpanSnapshot.Builder threadSnapshots(List<ThreadSnapshot> threadSnapshots)
Thread snapshots.
threadSnapshots
- the value to setpublic SpanSnapshot.Builder children(List<SpanSnapshot> children)
An array of child span snapshots.
children
- the value to setpublic SpanSnapshot build()
public SpanSnapshot.Builder copy(SpanSnapshot model)
Copyright © 2016–2024. All rights reserved.