public static class InternalSpan.SpanInternalWrapper extends Object implements InternalSpan
SpanInternalSpan.SpanInternalWrapperTHREAD_END_NAME_KEY| Modifier and Type | Method and Description |
|---|---|
void |
addError(InternalSpanError error)
Adds to the Span the provided
InternalSpanError. |
void |
end()
Ends the span.
|
Map<String,String> |
getAttributes()
Gets the attributes.
|
org.mule.runtime.api.profiling.tracing.SpanDuration |
getDuration() |
Set<org.mule.runtime.api.profiling.tracing.SpanError> |
getErrors() |
org.mule.runtime.api.profiling.tracing.SpanIdentifier |
getIdentifier() |
String |
getName() |
org.mule.runtime.api.profiling.tracing.Span |
getParent() |
SpanExporter |
getSpanExporter()
Gets the span exporter
|
boolean |
hasErrors() |
Map<String,String> |
serializeAsMap()
Serializes the span as a map.
|
void |
updateName(String name)
Updates the name for the current
InternalSpan |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttribute, getAsInternalSpan, getAttribute, setRootAttribute, updateChildSpanExporter, updateRootNamepublic org.mule.runtime.api.profiling.tracing.Span getParent()
getParent in interface org.mule.runtime.api.profiling.tracing.Spanpublic org.mule.runtime.api.profiling.tracing.SpanIdentifier getIdentifier()
getIdentifier in interface org.mule.runtime.api.profiling.tracing.Spanpublic String getName()
getName in interface org.mule.runtime.api.profiling.tracing.Spanpublic org.mule.runtime.api.profiling.tracing.SpanDuration getDuration()
getDuration in interface org.mule.runtime.api.profiling.tracing.Spanpublic Set<org.mule.runtime.api.profiling.tracing.SpanError> getErrors()
getErrors in interface org.mule.runtime.api.profiling.tracing.Spanpublic boolean hasErrors()
hasErrors in interface org.mule.runtime.api.profiling.tracing.Spanpublic void end()
InternalSpanend in interface InternalSpanpublic void addError(InternalSpanError error)
InternalSpanInternalSpanError.addError in interface InternalSpanerror - Error that will be added to the Span.public void updateName(String name)
InternalSpanInternalSpanupdateName in interface InternalSpanname - the name to set to the current span.public SpanExporter getSpanExporter()
InternalSpangetSpanExporter in interface InternalSpanpublic Map<String,String> getAttributes()
InternalSpangetAttributes in interface InternalSpanpublic Map<String,String> serializeAsMap()
InternalSpanserializeAsMap in interface InternalSpanCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.