public interface InternalSpan
extends org.mule.runtime.api.profiling.tracing.Span
InternalSpan used internally by the runtime. It defines an extension of the span contract that is only used
internally.| Modifier and Type | Interface and Description |
|---|---|
static class |
InternalSpan.SpanInternalWrapper
A wrapper as InternalSpan for other type of
Span |
| Modifier and Type | Method and Description |
|---|---|
default void |
addAttribute(String key,
String value)
Add an attribute
|
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
|
static InternalSpan |
getAsInternalSpan(org.mule.runtime.api.profiling.tracing.Span span) |
int |
getAttributesCount() |
SpanExporter |
getSpanExporter()
Gets the span exporter
|
Map<String,String> |
serializeAsMap()
Serializes the span as a map.
|
default void |
setRootAttribute(String rootAttributeKey,
String rootAttributeValue)
Sets a root attribute in the local trace for
InternalSpan This is useful in case a root element sets an attribute for
the flow, and it has to be propagated to the flow span. |
default void |
updateChildSpanExporter(InternalSpan childInternalSpan)
Updates the child
InternalSpan. |
void |
updateName(String name)
Updates the name for the current
InternalSpan |
default void |
updateRootName(String rootName)
Sets the root name in the local trace for the
InternalSpan. |
void end()
void addError(InternalSpanError error)
InternalSpanError.error - Error that will be added to the Span.default void addAttribute(String key, String value)
key - key for the attributevalue - the value for the attribute addedstatic InternalSpan getAsInternalSpan(org.mule.runtime.api.profiling.tracing.Span span)
span - the Spanvoid updateName(String name)
InternalSpanname - the name to set to the current span.SpanExporter getSpanExporter()
default void updateChildSpanExporter(InternalSpan childInternalSpan)
InternalSpan.childInternalSpan - the child InternalSpan.void forEachAttribute(BiConsumer<String,String> biConsumer)
biConsumer - the operation to apply.Map<String,String> serializeAsMap()
default void updateRootName(String rootName)
InternalSpan. This is useful in case a root element sets a name for the
flow, and it has to be propagated to the flow span. This propagation is needed, for example, if a source sets a name for
complying with semantic conventions for the flow and there is a policy applied to the source.rootName - the root name.default void setRootAttribute(String rootAttributeKey, String rootAttributeValue)
InternalSpan This is useful in case a root element sets an attribute for
the flow, and it has to be propagated to the flow span. This propagation is needed, for example, if a source sets a name for
complying with semantic conventions for the flow and there is a policy applied to the source.rootAttributeKey - the key for root attribute.rootAttributeValue - the value for the root attribute.int getAttributesCount()
Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.