public class ExecutionSpan extends Object implements InternalSpan
Span that represents the trace corresponding to the execution of mule flow or component.| Modifier and Type | Class and Description |
|---|---|
static class |
ExecutionSpan.ExecutionSpanBuilder
x A Builder for
ExecutionSpan |
InternalSpan.SpanInternalWrapper| Modifier and Type | Field and Description |
|---|---|
static String |
THREAD_END_NAME |
THREAD_END_NAME_KEY| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String key,
String value) |
void |
addError(InternalSpanError error) |
void |
end() |
Optional<String> |
getAttribute(String key) |
Map<String,String> |
getAttributes() |
org.mule.runtime.api.profiling.tracing.SpanDuration |
getDuration() |
Set<org.mule.runtime.api.profiling.tracing.SpanError> |
getErrors() |
static ExecutionSpan.ExecutionSpanBuilder |
getExecutionSpanBuilder() |
org.mule.runtime.api.profiling.tracing.SpanIdentifier |
getIdentifier() |
String |
getName() |
org.mule.runtime.api.profiling.tracing.Span |
getParent() |
SpanExporter |
getSpanExporter() |
boolean |
hasErrors() |
Map<String,String> |
serializeAsMap() |
void |
setRootAttribute(String s,
String s1) |
void |
updateChildSpanExporter(InternalSpan internalSpan) |
void |
updateName(String name) |
void |
updateRootName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsInternalSpanpublic static final String THREAD_END_NAME
public static ExecutionSpan.ExecutionSpanBuilder getExecutionSpanBuilder()
public 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 void setRootAttribute(String s, String s1)
setRootAttribute in interface InternalSpanpublic void updateRootName(String name)
updateRootName in interface InternalSpanpublic boolean hasErrors()
hasErrors in interface org.mule.runtime.api.profiling.tracing.Spanpublic void end()
end in interface InternalSpanpublic void addError(InternalSpanError error)
addError in interface InternalSpanpublic void updateName(String name)
updateName in interface InternalSpanpublic SpanExporter getSpanExporter()
getSpanExporter in interface InternalSpanpublic Map<String,String> getAttributes()
getAttributes in interface InternalSpanpublic Map<String,String> serializeAsMap()
serializeAsMap in interface InternalSpanpublic void addAttribute(String key, String value)
addAttribute in interface InternalSpanpublic Optional<String> getAttribute(String key)
getAttribute in interface InternalSpanpublic void updateChildSpanExporter(InternalSpan internalSpan)
updateChildSpanExporter in interface InternalSpanCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.