Package com.datadog.api.client.v2.model
Class APMTraceSpan
java.lang.Object
com.datadog.api.client.v2.model.APMTraceSpan
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class APMTraceSpan
extends Object
A single APM span returned as part of a trace.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this APMTraceSpan object is equal to o.error(APMSpanErrorFlag error) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The duration of the span, in nanoseconds.The end time of the span, in Unix nanoseconds.getError()Error flag for a span.getMeta()String-valued tags attached to the span.Numeric metrics attached to the span.getName()The operation name of the span.The ID of the parent span, or0when the span is a trace root.The resource that the span describes.A hash of the resource field.Whether access to the span is restricted by the organization's data access policies.The time spent in the span itself, excluding time spent in child spans, in nanoseconds.The name of the service that emitted the span.The span ID, as an unsigned 64-bit integer.The start time of the span, in Unix nanoseconds.The lower 64 bits of the trace ID, as an unsigned 64-bit integer.The full 128-bit trace ID, encoded as a 32-character hexadecimal string.getType()The type of the span (for example,web,db, orrpc).inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putMetaItem(String key, String metaItem) putMetricsItem(String key, Double metricsItem) resourceHash(String resourceHash) restricted(Boolean restricted) voidsetDuration(Long duration) voidsetEndTime(Long endTime) voidsetError(APMSpanErrorFlag error) voidvoidsetMetrics(Map<String, Double> metrics) voidvoidsetParentId(Long parentId) voidsetResource(String resource) voidsetResourceHash(String resourceHash) voidsetRestricted(Boolean restricted) voidsetSelfTime(Double selfTime) voidsetService(String service) voidvoidsetStartTime(Long startTime) voidsetTraceId(Long traceId) voidsetTraceIdFull(String traceIdFull) voidtoString()traceIdFull(String traceIdFull)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_RESOURCE
- See Also:
-
JSON_PROPERTY_RESOURCE_HASH
- See Also:
-
JSON_PROPERTY_RESTRICTED
- See Also:
-
JSON_PROPERTY_SELF_TIME
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
JSON_PROPERTY_TRACE_ID_FULL
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
APMTraceSpan
public APMTraceSpan() -
APMTraceSpan
-
-
Method Details
-
duration
-
getDuration
The duration of the span, in nanoseconds.- Returns:
- duration
-
setDuration
-
endTime
-
getEndTime
The end time of the span, in Unix nanoseconds.- Returns:
- endTime
-
setEndTime
-
error
-
getError
Error flag for a span.1when the span is in error,0otherwise.- Returns:
- error
-
setError
-
meta
-
putMetaItem
-
getMeta
String-valued tags attached to the span. Tag keys starting with_are filtered out of the response.- Returns:
- meta
-
setMeta
-
metrics
-
putMetricsItem
-
getMetrics
Numeric metrics attached to the span. Metric keys starting with_are filtered out of the response.- Returns:
- metrics
-
setMetrics
-
name
-
getName
The operation name of the span.- Returns:
- name
-
setName
-
parentId
-
getParentId
The ID of the parent span, or0when the span is a trace root.- Returns:
- parentId
-
setParentId
-
resource
-
getResource
The resource that the span describes.- Returns:
- resource
-
setResource
-
resourceHash
-
getResourceHash
A hash of the resource field.- Returns:
- resourceHash
-
setResourceHash
-
restricted
-
getRestricted
Whether access to the span is restricted by the organization's data access policies.- Returns:
- restricted
-
setRestricted
-
selfTime
-
getSelfTime
The time spent in the span itself, excluding time spent in child spans, in nanoseconds.- Returns:
- selfTime
-
setSelfTime
-
service
-
getService
The name of the service that emitted the span.- Returns:
- service
-
setService
-
spanId
-
getSpanId
The span ID, as an unsigned 64-bit integer.- Returns:
- spanId
-
setSpanId
-
startTime
-
getStartTime
The start time of the span, in Unix nanoseconds.- Returns:
- startTime
-
setStartTime
-
traceId
-
getTraceId
The lower 64 bits of the trace ID, as an unsigned 64-bit integer.- Returns:
- traceId
-
setTraceId
-
traceIdFull
-
getTraceIdFull
The full 128-bit trace ID, encoded as a 32-character hexadecimal string.- Returns:
- traceIdFull
-
setTraceIdFull
-
type
-
getType
The type of the span (for example,web,db, orrpc).- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- APMTraceSpan
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this APMTraceSpan object is equal to o. -
hashCode
public int hashCode() -
toString
-