public interface MuleOpenTelemetrySpan
extends io.opentelemetry.api.trace.Span
| Modifier and Type | Method and Description |
|---|---|
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
|
Map<String,String> |
getDistributedTraceContextMap() |
default Set<String> |
getNoExportUntil() |
io.opentelemetry.context.Context |
getSpanOpenTelemetryContext()
The OpenTelemetry Api Context
|
boolean |
isRoot() |
boolean |
onlyPropagateNamesAndAttributes() |
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.
|
addEvent, addEvent, addEvent, addEvent, addEvent, addEvent, current, end, end, end, fromContext, fromContextOrNull, getInvalid, getSpanContext, isRecording, recordException, recordException, setAllAttributes, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setStatus, setStatus, storeInContext, updateName, wrapio.opentelemetry.context.Context getSpanOpenTelemetryContext()
void end(org.mule.runtime.tracer.api.span.InternalSpan internalSpan,
org.mule.runtime.tracer.api.span.info.InitialSpanInfo initialSpanInfo,
String artifactId,
String artifactType)
internalSpan - the internal span.initialSpanInfo - the start span info.artifactId - the artifact id.artifactType - the artifact type.void setNoExportUntil(Set<String> noExportableUntil)
For 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)
void setPolicy(boolean policy)
policy - value to setvoid setRoot(boolean root)
root - value to setboolean onlyPropagateNamesAndAttributes()
boolean isRoot()
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.