public static class InternalSpan.SpanInternalWrapper extends Object implements InternalSpan
SpanInternalSpan.SpanInternalWrapper| Modifier and Type | Method and Description |
|---|---|
void |
addError(InternalSpanError error)
Adds to the Span the provided
InternalSpanError. |
void |
end()
Ends the span.
|
void |
forEachAttribute(BiConsumer<String,String> biConsumer)
Performs the operation on each key/value
|
int |
getAttributesCount() |
org.mule.runtime.api.profiling.tracing.SpanDuration |
getDuration() |
List<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, 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 List<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 void forEachAttribute(BiConsumer<String,String> biConsumer)
InternalSpanforEachAttribute in interface InternalSpanbiConsumer - the operation to apply.public Map<String,String> serializeAsMap()
InternalSpanserializeAsMap in interface InternalSpanpublic int getAttributesCount()
getAttributesCount in interface InternalSpanCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.