public class DecoratedMuleOpenTelemetrySpan extends Object implements MuleOpenTelemetrySpan
| Modifier and Type | Field and Description |
|---|---|
static String |
ARTIFACT_ID |
static String |
ARTIFACT_TYPE |
static io.opentelemetry.api.common.AttributeKey<Boolean> |
EXCEPTION_ESCAPED_KEY |
static String |
EXCEPTION_EVENT_NAME |
static io.opentelemetry.api.common.AttributeKey<String> |
EXCEPTION_MESSAGE_KEY |
static io.opentelemetry.api.common.AttributeKey<String> |
EXCEPTION_STACK_TRACE_KEY |
static io.opentelemetry.api.common.AttributeKey<String> |
EXCEPTION_TYPE_KEY |
static String |
EXCEPTIONS_HAS_BEEN_RECORDED |
static String |
SDK_SPAN_CLASS |
static String |
SPAN_KIND |
static Field |
SPAN_KIND_FIELD |
static String |
SPAN_KIND_FIELD_NAME |
static String |
STATUS |
| Constructor and Description |
|---|
DecoratedMuleOpenTelemetrySpan(io.opentelemetry.api.trace.Span delegate) |
| Modifier and Type | Method and Description |
|---|---|
io.opentelemetry.api.trace.Span |
addEvent(String s,
io.opentelemetry.api.common.Attributes attributes) |
io.opentelemetry.api.trace.Span |
addEvent(String s,
io.opentelemetry.api.common.Attributes attributes,
long l,
TimeUnit timeUnit) |
void |
end() |
void |
end(org.mule.runtime.tracer.api.span.InternalSpan internalSpan,
org.mule.runtime.tracer.api.span.info.InitialSpanInfo initialSpanInfo,
String artifactId,
String artifactType)
Ends the span
|
void |
end(long l,
TimeUnit timeUnit) |
Map<String,String> |
getDistributedTraceContextMap() |
Set<String> |
getNoExportUntil() |
io.opentelemetry.api.trace.SpanContext |
getSpanContext() |
io.opentelemetry.context.Context |
getSpanOpenTelemetryContext()
The OpenTelemetry Api Context
|
boolean |
isRecording() |
boolean |
isRoot() |
boolean |
onlyPropagateNamesAndAttributes() |
io.opentelemetry.api.trace.Span |
recordException(Throwable throwable,
io.opentelemetry.api.common.Attributes attributes) |
<T> io.opentelemetry.api.trace.Span |
setAttribute(io.opentelemetry.api.common.AttributeKey<T> attributeKey,
T t) |
io.opentelemetry.api.trace.Span |
setAttribute(String key,
String value) |
void |
setNoExportUntil(Set<String> noExportableUntil)
Indicates that no children will be exported till a span is found with the names returned.
|
void |
setPolicy(boolean policy)
Whether it is a policy span.
|
void |
setRoot(boolean root)
Whether it is a policy span.
|
io.opentelemetry.api.trace.Span |
setStatus(io.opentelemetry.api.trace.StatusCode statusCode,
String s) |
io.opentelemetry.api.trace.Span |
updateName(String newName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String EXCEPTION_EVENT_NAME
public static final io.opentelemetry.api.common.AttributeKey<String> EXCEPTION_TYPE_KEY
public static final io.opentelemetry.api.common.AttributeKey<String> EXCEPTION_MESSAGE_KEY
public static final io.opentelemetry.api.common.AttributeKey<String> EXCEPTION_STACK_TRACE_KEY
public static final io.opentelemetry.api.common.AttributeKey<Boolean> EXCEPTION_ESCAPED_KEY
public static final String EXCEPTIONS_HAS_BEEN_RECORDED
public static final String ARTIFACT_ID
public static final String ARTIFACT_TYPE
public static final String SPAN_KIND
public static final String STATUS
public static final String SDK_SPAN_CLASS
public static final String SPAN_KIND_FIELD_NAME
public static final Field SPAN_KIND_FIELD
public DecoratedMuleOpenTelemetrySpan(io.opentelemetry.api.trace.Span delegate)
public io.opentelemetry.context.Context getSpanOpenTelemetryContext()
MuleOpenTelemetrySpangetSpanOpenTelemetryContext in interface MuleOpenTelemetrySpanpublic void end(org.mule.runtime.tracer.api.span.InternalSpan internalSpan,
org.mule.runtime.tracer.api.span.info.InitialSpanInfo initialSpanInfo,
String artifactId,
String artifactType)
MuleOpenTelemetrySpanend in interface MuleOpenTelemetrySpaninternalSpan - the internal span.initialSpanInfo - the start span info.artifactId - the artifact id.artifactType - the artifact type.public Map<String,String> getDistributedTraceContextMap()
getDistributedTraceContextMap in interface MuleOpenTelemetrySpanpublic void setNoExportUntil(Set<String> noExportableUntil)
MuleOpenTelemetrySpanFor example: in case noExportUntil returns "execute-next", no children will be exported till an execute-next span.
------------- span (exported) --------------------------------------------------------- |___ logger (not exported) ____ |___ scope (not exported) |___ execute-next (exported) |__ flow (exported)
setNoExportUntil in interface MuleOpenTelemetrySpanpublic Set<String> getNoExportUntil()
getNoExportUntil in interface MuleOpenTelemetrySpanpublic void setPolicy(boolean policy)
MuleOpenTelemetrySpansetPolicy in interface MuleOpenTelemetrySpanpolicy - value to setpublic void setRoot(boolean root)
MuleOpenTelemetrySpansetRoot in interface MuleOpenTelemetrySpanroot - value to setpublic boolean onlyPropagateNamesAndAttributes()
onlyPropagateNamesAndAttributes in interface MuleOpenTelemetrySpanpublic boolean isRoot()
isRoot in interface MuleOpenTelemetrySpanpublic <T> io.opentelemetry.api.trace.Span setAttribute(io.opentelemetry.api.common.AttributeKey<T> attributeKey,
T t)
setAttribute in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span setAttribute(String key, String value)
setAttribute in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span addEvent(String s, io.opentelemetry.api.common.Attributes attributes)
addEvent in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span addEvent(String s, io.opentelemetry.api.common.Attributes attributes, long l, TimeUnit timeUnit)
addEvent in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span setStatus(io.opentelemetry.api.trace.StatusCode statusCode,
String s)
setStatus in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span recordException(Throwable throwable, io.opentelemetry.api.common.Attributes attributes)
recordException in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.Span updateName(String newName)
updateName in interface io.opentelemetry.api.trace.Spanpublic void end()
end in interface io.opentelemetry.api.trace.Spanpublic void end(long l,
TimeUnit timeUnit)
end in interface io.opentelemetry.api.trace.Spanpublic io.opentelemetry.api.trace.SpanContext getSpanContext()
getSpanContext in interface io.opentelemetry.api.trace.Spanpublic boolean isRecording()
isRecording in interface io.opentelemetry.api.trace.SpanCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.