public static class TraceSpanSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TraceSpanSummary |
build() |
TraceSpanSummary.Builder |
copy(TraceSpanSummary model) |
TraceSpanSummary.Builder |
errorSpanCount(Integer errorSpanCount)
The number of spans with errors that have been processed by the system for the trace.
|
TraceSpanSummary.Builder |
isFault(Boolean isFault)
Boolean flag that indicates whether the trace has an error.
|
TraceSpanSummary.Builder |
key(String key)
Unique identifier (traceId) for the trace that represents the span set.
|
TraceSpanSummary.Builder |
rootSpanDurationInMs(Integer rootSpanDurationInMs)
Time taken for the root span operation to complete in milliseconds.
|
TraceSpanSummary.Builder |
rootSpanOperationName(String rootSpanOperationName)
Root span name associated with the trace.
|
TraceSpanSummary.Builder |
rootSpanServiceName(String rootSpanServiceName)
Service associated with the trace.
|
TraceSpanSummary.Builder |
serviceSummaries(List<TraceServiceSummary> serviceSummaries)
A summary of the spans by service.
|
TraceSpanSummary.Builder |
spanCount(Integer spanCount)
The number of spans that have been processed by the system for the trace.
|
TraceSpanSummary.Builder |
timeEarliestSpanStarted(Date timeEarliestSpanStarted)
Start time of the earliest span in the span collection.
|
TraceSpanSummary.Builder |
timeLatestSpanEnded(Date timeLatestSpanEnded)
End time of the span that most recently ended in the span collection.
|
TraceSpanSummary.Builder |
timeRootSpanEnded(Date timeRootSpanEnded)
End time of the root span for the span collection.
|
TraceSpanSummary.Builder |
timeRootSpanStarted(Date timeRootSpanStarted)
Start time of the root span for the span collection.
|
TraceSpanSummary.Builder |
traceDurationInMs(Integer traceDurationInMs)
Time between the start of the earliest span and the end of the most recent span in
milliseconds.
|
TraceSpanSummary.Builder |
traceErrorCode(String traceErrorCode)
Error code of the trace.
|
TraceSpanSummary.Builder |
traceErrorType(String traceErrorType)
Error type of the trace.
|
TraceSpanSummary.Builder |
traceStatus(String traceStatus)
The status of the trace.
|
public TraceSpanSummary.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 TraceSpanSummary.Builder rootSpanOperationName(String rootSpanOperationName)
Root span name associated with the trace. This is the flow start operation name. Null is displayed if the root span is not yet completed.
rootSpanOperationName
- the value to setpublic TraceSpanSummary.Builder timeEarliestSpanStarted(Date timeEarliestSpanStarted)
Start time of the earliest span in the span collection.
timeEarliestSpanStarted
- the value to setpublic TraceSpanSummary.Builder timeLatestSpanEnded(Date timeLatestSpanEnded)
End time of the span that most recently ended in the span collection.
timeLatestSpanEnded
- the value to setpublic TraceSpanSummary.Builder spanCount(Integer spanCount)
The number of spans that have been processed by the system for the trace. Note that there could be additional spans that have not been processed or reported yet if the trace is still in progress.
spanCount
- the value to setpublic TraceSpanSummary.Builder errorSpanCount(Integer errorSpanCount)
The number of spans with errors that have been processed by the system for the trace. Note that the number of spans with errors will be less than or equal to the total number of spans in the trace.
errorSpanCount
- the value to setpublic TraceSpanSummary.Builder rootSpanServiceName(String rootSpanServiceName)
Service associated with the trace.
rootSpanServiceName
- the value to setpublic TraceSpanSummary.Builder timeRootSpanStarted(Date timeRootSpanStarted)
Start time of the root span for the span collection.
timeRootSpanStarted
- the value to setpublic TraceSpanSummary.Builder timeRootSpanEnded(Date timeRootSpanEnded)
End time of the root span for the span collection.
timeRootSpanEnded
- the value to setpublic TraceSpanSummary.Builder rootSpanDurationInMs(Integer rootSpanDurationInMs)
Time taken for the root span operation to complete in milliseconds.
rootSpanDurationInMs
- the value to setpublic TraceSpanSummary.Builder traceDurationInMs(Integer traceDurationInMs)
Time between the start of the earliest span and the end of the most recent span in milliseconds.
traceDurationInMs
- the value to setpublic TraceSpanSummary.Builder isFault(Boolean isFault)
Boolean flag that indicates whether the trace has an error.
isFault
- the value to setpublic TraceSpanSummary.Builder traceStatus(String traceStatus)
The status of the trace. The trace statuses are defined as follows: complete - a root span has been recorded, but there is no information on the errors. success - a complete root span is recorded there is a successful error type and error code - HTTP 200. incomplete - the root span has not yet been received. error - the root span returned with an error. There may or may not be an associated error code or error type.
traceStatus
- the value to setpublic TraceSpanSummary.Builder traceErrorType(String traceErrorType)
Error type of the trace.
traceErrorType
- the value to setpublic TraceSpanSummary.Builder traceErrorCode(String traceErrorCode)
Error code of the trace.
traceErrorCode
- the value to setpublic TraceSpanSummary.Builder serviceSummaries(List<TraceServiceSummary> serviceSummaries)
A summary of the spans by service.
serviceSummaries
- the value to setpublic TraceSpanSummary build()
public TraceSpanSummary.Builder copy(TraceSpanSummary model)
Copyright © 2016–2024. All rights reserved.