-
public interface MutableSpan
-
-
Method Summary
Modifier and Type Method Description abstract longgetStartTime()abstract longgetDurationNano()abstract StringgetOperationName()abstract MutableSpansetOperationName(String serviceName)abstract StringgetServiceName()abstract MutableSpansetServiceName(String serviceName)abstract StringgetResourceName()abstract MutableSpansetResourceName(String resourceName)abstract IntegergetSamplingPriority()abstract MutableSpansetSamplingPriority(int newPriority)abstract StringgetSpanType()abstract MutableSpansetSpanType(String type)abstract Map<String, Object>getTags()abstract MutableSpansetTag(String tag, String value)abstract MutableSpansetTag(String tag, boolean value)abstract MutableSpansetTag(String tag, Number value)abstract BooleanisError()abstract MutableSpansetError(boolean value)abstract MutableSpangetRootSpan()abstract MutableSpangetLocalRootSpan()Returns the root span for current the trace fragment. abstract voiddrop()By calling this method the span will be removed from the current active Trace withoutactually being persisted.Note: This method is meant for internal SDK usage. -
-
Method Detail
-
getStartTime
abstract long getStartTime()
-
getDurationNano
abstract long getDurationNano()
-
getOperationName
abstract String getOperationName()
-
setOperationName
abstract MutableSpan setOperationName(String serviceName)
-
getServiceName
abstract String getServiceName()
-
setServiceName
abstract MutableSpan setServiceName(String serviceName)
-
getResourceName
abstract String getResourceName()
-
setResourceName
abstract MutableSpan setResourceName(String resourceName)
-
getSamplingPriority
abstract Integer getSamplingPriority()
-
setSamplingPriority
@Deprecated() abstract MutableSpan setSamplingPriority(int newPriority)
-
getSpanType
abstract String getSpanType()
-
setSpanType
abstract MutableSpan setSpanType(String type)
-
setTag
abstract MutableSpan setTag(String tag, String value)
-
setTag
abstract MutableSpan setTag(String tag, boolean value)
-
setTag
abstract MutableSpan setTag(String tag, Number value)
-
setError
abstract MutableSpan setError(boolean value)
-
getRootSpan
@Deprecated() abstract MutableSpan getRootSpan()
-
getLocalRootSpan
abstract MutableSpan getLocalRootSpan()
Returns the root span for current the trace fragment. In the context of distributed tracingthis method returns the root span only for the fragment generated by the currently tracedapplication.
-
drop
abstract void drop()
By calling this method the span will be removed from the current active Trace withoutactually being persisted.Note: This method is meant for internal SDK usage. Be aware that if used this Span willbe removed from the Trace and lost.
-
-
-
-