Package com.oracle.bmc.apmtraces.model
Class Span
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.apmtraces.model.Span
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class Span extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDefinition of a span object.
 Note: Objects should always be created or deserialized using theSpan.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 theSpan.Builder, which maintain a set of all explicitly set fields calledSpan.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSpan.Builderstatic classSpan.SourceNameSource of span (spans, syn_spans).
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Span.Builderbuilder()Create a new builder.booleanequals(Object o)LonggetDurationInMs()Total span duration in milliseconds.BooleangetIsError()Indicates if the span has an error.StringgetKey()Unique identifier (spanId) for the span.StringgetKind()Kind associated with the span.List<SpanLogCollection>getLogs()List of logs associated with the span.StringgetOperationName()Span name associated with the trace.StringgetParentSpanKey()Unique parent identifier for the span if one exists.StringgetServiceName()Service name associated with the span.Span.SourceNamegetSourceName()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.DategetTimeEnded()Span end time.DategetTimeStarted()Span start time.StringgetTraceKey()Unique identifier for the trace.inthashCode()Span.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
Span@Deprecated @ConstructorProperties({"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) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static Span.Builder builder() Create a new builder.
 - 
toBuilderpublic Span.Builder toBuilder() 
 - 
getKeypublic 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. - Returns:
- the value
 
 - 
getParentSpanKeypublic String getParentSpanKey() Unique parent identifier for the span if one exists.For root spans this will be null. - Returns:
- the value
 
 - 
getTraceKeypublic String getTraceKey() Unique identifier for the trace.- Returns:
- the value
 
 - 
getTimeStartedpublic Date getTimeStarted() Span start time.Timestamp when the span was started. - Returns:
- the value
 
 - 
getTimeEndedpublic Date getTimeEnded() Span end time.Timestamp when the span was completed. - Returns:
- the value
 
 - 
getDurationInMspublic Long getDurationInMs() Total span duration in milliseconds.- Returns:
- the value
 
 - 
getOperationNamepublic String getOperationName() Span name associated with the trace.This is usually the method or URI of the request. - Returns:
- the value
 
 - 
getServiceNamepublic String getServiceName() Service name associated with the span.- Returns:
- the value
 
 - 
getKindpublic String getKind() Kind associated with the span.- Returns:
- the value
 
 - 
getTagsMetadatapublic Map<String,TagMetadata> getTagsMetadata() Metadata about the tags in the span.- Returns:
- the value
 
 - 
getLogspublic List<SpanLogCollection> getLogs() List of logs associated with the span.- Returns:
- the value
 
 - 
getIsErrorpublic Boolean getIsError() Indicates if the span has an error.- Returns:
- the value
 
 - 
getSourceNamepublic Span.SourceName getSourceName() Source of span (spans, syn_spans).- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-