public interface SpanExporter
InternalSpan.| Modifier and Type | Field and Description |
|---|---|
static SpanExporter |
NOOP_EXPORTER |
| Modifier and Type | Method and Description |
|---|---|
void |
export()
Exports the
InternalSpan. |
Map<String,String> |
exportedSpanAsMap() |
InternalSpan |
getInternalSpan() |
default void |
onAdditionalAttribute(String key,
String value)
Operation to do when an attribute is added.
|
default void |
onError(InternalSpanError error)
Operation to do when an attribute an error occurs.
|
default void |
setRootAttribute(String rootAttributeKey,
String rootAttributeValue)
Sets a root attribute in the local trace for the exporter.
|
default void |
setRootName(String rootName)
Sets the root name in the local trace for the exporter.
|
default void |
updateChildSpanExporter(SpanExporter childSpanExporter)
Updates the exporter of a child
InternalSpan. |
void |
updateNameForExport(String newName)
Indicates that the span should be exported using a new name.
|
default void |
updateParentSpanFrom(Map<String,String> spanSerializedAsMap)
Updates parent span from a map
|
static final SpanExporter NOOP_EXPORTER
void export()
InternalSpan.void updateNameForExport(String newName)
newName - the new name.default void updateChildSpanExporter(SpanExporter childSpanExporter)
InternalSpan.childSpanExporter - the child InternalSpan exporter.InternalSpan getInternalSpan()
InternalSpan to export.default void setRootAttribute(String rootAttributeKey, String rootAttributeValue)
rootAttributeKey - the key for root attribute.rootAttributeValue - the value for the root attribute.default void setRootName(String rootName)
rootName - the root name.default void onAdditionalAttribute(String key, String value)
key - the key for the new attribute addedvalue - the value for the attributedefault void onError(InternalSpanError error)
error - the error.Copyright © 2003–2023 MuleSoft, Inc.. All rights reserved.