Package datadog.trace.api.interceptor
Interface MutableSpan
public interface MutableSpan
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the root span for current the trace fragment.Deprecated.longdefault ObjectgetTags()booleanisError()setError(boolean value) setMetric(CharSequence metric, double value) setMetric(CharSequence metric, float value) setMetric(CharSequence metric, int value) setMetric(CharSequence metric, long value) setOperationName(CharSequence serviceName) setResourceName(CharSequence resourceName) setSamplingPriority(int newPriority) Deprecated.Useinstead using either tag namesinvalid reference
io.opentracing.Span#setTag(String, boolean)DDTags.MANUAL_KEEPorDDTags.MANUAL_DROP.setServiceName(String serviceName) setSpanType(CharSequence type)
-
Method Details
-
getStartTime
long getStartTime()- Returns:
- Start time with nanosecond scale, but millisecond resolution.
-
getDurationNano
long getDurationNano()- Returns:
- Duration with nanosecond scale.
-
getOperationName
CharSequence getOperationName() -
setOperationName
-
getServiceName
String getServiceName() -
setServiceName
-
getResourceName
CharSequence getResourceName() -
setResourceName
-
getSamplingPriority
Integer getSamplingPriority() -
setSamplingPriority
Deprecated.Useinstead using either tag namesinvalid reference
io.opentracing.Span#setTag(String, boolean)DDTags.MANUAL_KEEPorDDTags.MANUAL_DROP.- Parameters:
newPriority-- Returns:
-
getSpanType
String getSpanType() -
setSpanType
-
getTags
-
getTag
-
setTag
-
setTag
-
setTag
-
setMetric
-
setMetric
-
setMetric
-
setMetric
-
isError
boolean isError() -
setError
-
getRootSpan
Deprecated.UsegetLocalRootSpan()instead. -
getLocalRootSpan
MutableSpan getLocalRootSpan()Returns the root span for current the trace fragment. In the context of distributed tracing this method returns the root span only for the fragment generated by the currently traced application.- Returns:
- The root span for the current trace fragment.
-
getLocalRootSpan()instead.