Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Span |
build() |
Span.Builder |
copy(Span model) |
Span.Builder |
durationInMs(Long durationInMs)
Total span duration in milliseconds.
|
Span.Builder |
isError(Boolean isError)
Indicates if the span has an error.
|
Span.Builder |
key(String key)
Unique identifier (spanId) for the span.
|
Span.Builder |
kind(String kind)
Kind associated with the span.
|
Span.Builder |
logs(List<SpanLogCollection> logs)
List of logs associated with the span.
|
Span.Builder |
operationName(String operationName)
Span name associated with the trace.
|
Span.Builder |
parentSpanKey(String parentSpanKey)
Unique parent identifier for the span if one exists.
|
Span.Builder |
serviceName(String serviceName)
Service name associated with the span.
|
Span.Builder |
sourceName(Span.SourceName sourceName)
Source of span (spans, syn_spans).
|
Span.Builder |
tags(List<Tag> tags)
List of tags associated with the span.
|
Span.Builder |
tagsMetadata(Map<String,TagMetadata> tagsMetadata)
Metadata about the tags in the span.
|
Span.Builder |
timeEnded(Date timeEnded)
Span end time.
|
Span.Builder |
timeStarted(Date timeStarted)
Span start time.
|
Span.Builder |
traceKey(String traceKey)
Unique identifier for the trace.
|
public Span.Builder key(String key)
Unique identifier (spanId) for the span. Note that this field is defined as spanKey in the API and it maps to the spanId in the trace data in Application Performance Monitoring.
key
- the value to setpublic Span.Builder parentSpanKey(String parentSpanKey)
Unique parent identifier for the span if one exists. For root spans this will be null.
parentSpanKey
- the value to setpublic Span.Builder traceKey(String traceKey)
Unique identifier for the trace.
traceKey
- the value to setpublic Span.Builder timeStarted(Date timeStarted)
Span start time. Timestamp when the span was started.
timeStarted
- the value to setpublic Span.Builder timeEnded(Date timeEnded)
Span end time. Timestamp when the span was completed.
timeEnded
- the value to setpublic Span.Builder durationInMs(Long durationInMs)
Total span duration in milliseconds.
durationInMs
- the value to setpublic Span.Builder operationName(String operationName)
Span name associated with the trace. This is usually the method or URI of the request.
operationName
- the value to setpublic Span.Builder serviceName(String serviceName)
Service name associated with the span.
serviceName
- the value to setpublic Span.Builder kind(String kind)
Kind associated with the span.
kind
- the value to setpublic Span.Builder tags(List<Tag> tags)
List of tags associated with the span.
tags
- the value to setpublic Span.Builder tagsMetadata(Map<String,TagMetadata> tagsMetadata)
Metadata about the tags in the span.
tagsMetadata
- the value to setpublic Span.Builder logs(List<SpanLogCollection> logs)
List of logs associated with the span.
logs
- the value to setpublic Span.Builder isError(Boolean isError)
Indicates if the span has an error.
isError
- the value to setpublic Span.Builder sourceName(Span.SourceName sourceName)
Source of span (spans, syn_spans).
sourceName
- the value to setpublic Span build()
public Span.Builder copy(Span model)
Copyright © 2016–2024. All rights reserved.