public static class TraceSnapshot.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TraceSnapshot |
build() |
TraceSnapshot.Builder |
copy(TraceSnapshot model) |
TraceSnapshot.Builder |
key(String key)
Unique identifier (traceId) for the trace that represents the span set.
|
TraceSnapshot.Builder |
spanSnapshots(List<SpanSnapshot> spanSnapshots)
List of spans.
|
TraceSnapshot.Builder |
timeEnded(Date timeEnded)
End time of the trace.
|
TraceSnapshot.Builder |
timeStarted(Date timeStarted)
Start time of the trace.
|
TraceSnapshot.Builder |
traceSnapshotDetails(List<SnapshotDetail> traceSnapshotDetails)
Trace snapshots properties.
|
public TraceSnapshot.Builder key(String key)
Unique identifier (traceId) for the trace that represents the span set. Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring.
key
- the value to setpublic TraceSnapshot.Builder timeStarted(Date timeStarted)
Start time of the trace.
timeStarted
- the value to setpublic TraceSnapshot.Builder timeEnded(Date timeEnded)
End time of the trace.
timeEnded
- the value to setpublic TraceSnapshot.Builder traceSnapshotDetails(List<SnapshotDetail> traceSnapshotDetails)
Trace snapshots properties.
traceSnapshotDetails
- the value to setpublic TraceSnapshot.Builder spanSnapshots(List<SpanSnapshot> spanSnapshots)
List of spans.
spanSnapshots
- the value to setpublic TraceSnapshot build()
public TraceSnapshot.Builder copy(TraceSnapshot model)
Copyright © 2016–2024. All rights reserved.