@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class APMTraceSpan extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_DURATION |
static String |
JSON_PROPERTY_END_TIME |
static String |
JSON_PROPERTY_ERROR |
static String |
JSON_PROPERTY_META |
static String |
JSON_PROPERTY_METRICS |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_PARENT_ID |
static String |
JSON_PROPERTY_RESOURCE |
static String |
JSON_PROPERTY_RESOURCE_HASH |
static String |
JSON_PROPERTY_RESTRICTED |
static String |
JSON_PROPERTY_SELF_TIME |
static String |
JSON_PROPERTY_SERVICE |
static String |
JSON_PROPERTY_SPAN_ID |
static String |
JSON_PROPERTY_START_TIME |
static String |
JSON_PROPERTY_TRACE_ID |
static String |
JSON_PROPERTY_TRACE_ID_FULL |
static String |
JSON_PROPERTY_TYPE |
boolean |
unparsed |
| Constructor and Description |
|---|
APMTraceSpan() |
APMTraceSpan(Long duration,
Long endTime,
APMSpanErrorFlag error,
Map<String,String> meta,
Map<String,Double> metrics,
String name,
Long parentId,
String resource,
String service,
Long spanId,
Long startTime,
Long traceId,
String traceIdFull,
String type) |
| Modifier and Type | Method and Description |
|---|---|
APMTraceSpan |
duration(Long duration) |
APMTraceSpan |
endTime(Long endTime) |
boolean |
equals(Object o)
Return true if this APMTraceSpan object is equal to o.
|
APMTraceSpan |
error(APMSpanErrorFlag error) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Long |
getDuration()
The duration of the span, in nanoseconds.
|
Long |
getEndTime()
The end time of the span, in Unix nanoseconds.
|
APMSpanErrorFlag |
getError()
Error flag for a span.
|
Map<String,String> |
getMeta()
String-valued tags attached to the span.
|
Map<String,Double> |
getMetrics()
Numeric metrics attached to the span.
|
String |
getName()
The operation name of the span.
|
Long |
getParentId()
The ID of the parent span, or
0 when the span is a trace root. |
String |
getResource()
The resource that the span describes.
|
String |
getResourceHash()
A hash of the resource field.
|
Boolean |
getRestricted()
Whether access to the span is restricted by the organization's data access policies.
|
Double |
getSelfTime()
The time spent in the span itself, excluding time spent in child spans, in nanoseconds.
|
String |
getService()
The name of the service that emitted the span.
|
Long |
getSpanId()
The span ID, as an unsigned 64-bit integer.
|
Long |
getStartTime()
The start time of the span, in Unix nanoseconds.
|
Long |
getTraceId()
The lower 64 bits of the trace ID, as an unsigned 64-bit integer.
|
String |
getTraceIdFull()
The full 128-bit trace ID, encoded as a 32-character hexadecimal string.
|
String |
getType()
The type of the span (for example,
web, db, or rpc). |
int |
hashCode() |
APMTraceSpan |
meta(Map<String,String> meta) |
APMTraceSpan |
metrics(Map<String,Double> metrics) |
APMTraceSpan |
name(String name) |
APMTraceSpan |
parentId(Long parentId) |
APMTraceSpan |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
APMTraceSpan |
putMetaItem(String key,
String metaItem) |
APMTraceSpan |
putMetricsItem(String key,
Double metricsItem) |
APMTraceSpan |
resource(String resource) |
APMTraceSpan |
resourceHash(String resourceHash) |
APMTraceSpan |
restricted(Boolean restricted) |
APMTraceSpan |
selfTime(Double selfTime) |
APMTraceSpan |
service(String service) |
void |
setDuration(Long duration) |
void |
setEndTime(Long endTime) |
void |
setError(APMSpanErrorFlag error) |
void |
setMeta(Map<String,String> meta) |
void |
setMetrics(Map<String,Double> metrics) |
void |
setName(String name) |
void |
setParentId(Long parentId) |
void |
setResource(String resource) |
void |
setResourceHash(String resourceHash) |
void |
setRestricted(Boolean restricted) |
void |
setSelfTime(Double selfTime) |
void |
setService(String service) |
void |
setSpanId(Long spanId) |
void |
setStartTime(Long startTime) |
void |
setTraceId(Long traceId) |
void |
setTraceIdFull(String traceIdFull) |
void |
setType(String type) |
APMTraceSpan |
spanId(Long spanId) |
APMTraceSpan |
startTime(Long startTime) |
String |
toString() |
APMTraceSpan |
traceId(Long traceId) |
APMTraceSpan |
traceIdFull(String traceIdFull) |
APMTraceSpan |
type(String type) |
public boolean unparsed
public static final String JSON_PROPERTY_DURATION
public static final String JSON_PROPERTY_END_TIME
public static final String JSON_PROPERTY_ERROR
public static final String JSON_PROPERTY_META
public static final String JSON_PROPERTY_METRICS
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_PARENT_ID
public static final String JSON_PROPERTY_RESOURCE
public static final String JSON_PROPERTY_RESOURCE_HASH
public static final String JSON_PROPERTY_RESTRICTED
public static final String JSON_PROPERTY_SELF_TIME
public static final String JSON_PROPERTY_SERVICE
public static final String JSON_PROPERTY_SPAN_ID
public static final String JSON_PROPERTY_START_TIME
public static final String JSON_PROPERTY_TRACE_ID
public static final String JSON_PROPERTY_TRACE_ID_FULL
public static final String JSON_PROPERTY_TYPE
public APMTraceSpan duration(Long duration)
public Long getDuration()
public void setDuration(Long duration)
public APMTraceSpan endTime(Long endTime)
public Long getEndTime()
public void setEndTime(Long endTime)
public APMTraceSpan error(APMSpanErrorFlag error)
public APMSpanErrorFlag getError()
1 when the span is in error, 0 otherwise.public void setError(APMSpanErrorFlag error)
public APMTraceSpan meta(Map<String,String> meta)
public APMTraceSpan putMetaItem(String key, String metaItem)
public Map<String,String> getMeta()
_ are filtered out
of the response.public APMTraceSpan metrics(Map<String,Double> metrics)
public APMTraceSpan putMetricsItem(String key, Double metricsItem)
public Map<String,Double> getMetrics()
_ are filtered out
of the response.public APMTraceSpan name(String name)
public String getName()
public void setName(String name)
public APMTraceSpan parentId(Long parentId)
public Long getParentId()
0 when the span is a trace root.public void setParentId(Long parentId)
public APMTraceSpan resource(String resource)
public String getResource()
public void setResource(String resource)
public APMTraceSpan resourceHash(String resourceHash)
@Nullable public String getResourceHash()
public void setResourceHash(String resourceHash)
public APMTraceSpan restricted(Boolean restricted)
@Nullable public Boolean getRestricted()
public void setRestricted(Boolean restricted)
public APMTraceSpan selfTime(Double selfTime)
@Nullable public Double getSelfTime()
public void setSelfTime(Double selfTime)
public APMTraceSpan service(String service)
public String getService()
public void setService(String service)
public APMTraceSpan spanId(Long spanId)
public Long getSpanId()
public void setSpanId(Long spanId)
public APMTraceSpan startTime(Long startTime)
public Long getStartTime()
public void setStartTime(Long startTime)
public APMTraceSpan traceId(Long traceId)
public Long getTraceId()
public void setTraceId(Long traceId)
public APMTraceSpan traceIdFull(String traceIdFull)
public String getTraceIdFull()
public void setTraceIdFull(String traceIdFull)
public APMTraceSpan type(String type)
public String getType()
web, db, or rpc).public void setType(String type)
public APMTraceSpan putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.