@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class Span extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Definition of a span object.
Note: Objects should always be created or deserialized using the Span.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Span.Builder
, which maintain a
set of all explicitly set fields called Span.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Span.Builder |
static class |
Span.SourceName
Source of span (spans, syn_spans).
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Span(String key,
String parentSpanKey,
String traceKey,
Date timeStarted,
Date timeEnded,
Long durationInMs,
String operationName,
String serviceName,
String kind,
List<Tag> tags,
Map<String,TagMetadata> tagsMetadata,
List<SpanLogCollection> logs,
Boolean isError,
Span.SourceName sourceName)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Span.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Long |
getDurationInMs()
Total span duration in milliseconds.
|
Boolean |
getIsError()
Indicates if the span has an error.
|
String |
getKey()
Unique identifier (spanId) for the span.
|
String |
getKind()
Kind associated with the span.
|
List<SpanLogCollection> |
getLogs()
List of logs associated with the span.
|
String |
getOperationName()
Span name associated with the trace.
|
String |
getParentSpanKey()
Unique parent identifier for the span if one exists.
|
String |
getServiceName()
Service name associated with the span.
|
Span.SourceName |
getSourceName()
Source of span (spans, syn_spans).
|
List<Tag> |
getTags()
List of tags associated with the span.
|
Map<String,TagMetadata> |
getTagsMetadata()
Metadata about the tags in the span.
|
Date |
getTimeEnded()
Span end time.
|
Date |
getTimeStarted()
Span start time.
|
String |
getTraceKey()
Unique identifier for the trace.
|
int |
hashCode() |
Span.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"key","parentSpanKey","traceKey","timeStarted","timeEnded","durationInMs","operationName","serviceName","kind","tags","tagsMetadata","logs","isError","sourceName"}) public Span(String key, String parentSpanKey, String traceKey, Date timeStarted, Date timeEnded, Long durationInMs, String operationName, String serviceName, String kind, List<Tag> tags, Map<String,TagMetadata> tagsMetadata, List<SpanLogCollection> logs, Boolean isError, Span.SourceName sourceName)
public static Span.Builder builder()
Create a new builder.
public Span.Builder toBuilder()
public String getKey()
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.
public String getParentSpanKey()
Unique parent identifier for the span if one exists. For root spans this will be null.
public String getTraceKey()
Unique identifier for the trace.
public Date getTimeStarted()
Span start time. Timestamp when the span was started.
public Date getTimeEnded()
Span end time. Timestamp when the span was completed.
public Long getDurationInMs()
Total span duration in milliseconds.
public String getOperationName()
Span name associated with the trace. This is usually the method or URI of the request.
public String getServiceName()
Service name associated with the span.
public String getKind()
Kind associated with the span.
public Map<String,TagMetadata> getTagsMetadata()
Metadata about the tags in the span.
public List<SpanLogCollection> getLogs()
List of logs associated with the span.
public Boolean getIsError()
Indicates if the span has an error.
public Span.SourceName getSourceName()
Source of span (spans, syn_spans).
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.