Class FlowSpan
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.store.FlowSpan
-
- All Implemented Interfaces:
Serializable
public class FlowSpan extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpanMetaaddProcessorSpan(String containerName, TraceComponent traceComponent, io.opentelemetry.api.trace.SpanBuilder spanBuilder)Add a span created from givenSpanBuilderfor the processor identified at the given locationString.SpanMetaendProcessorSpan(String location, Consumer<io.opentelemetry.api.trace.Span> spanUpdater, Instant endTime)ProcessorSpanfindSpan(String location)StringgetApikitConfigName()StringgetFlowName()StringgetRootSpanName()io.opentelemetry.api.trace.SpangetSpan()Map<String,String>getTags()FlowSpansetRootSpanName(String rootSpanName)FlowSpansetTags(Map<String,String> tags)
-
-
-
Method Detail
-
getSpan
public io.opentelemetry.api.trace.Span getSpan()
-
getFlowName
public String getFlowName()
-
getApikitConfigName
public String getApikitConfigName()
-
addProcessorSpan
public SpanMeta addProcessorSpan(String containerName, TraceComponent traceComponent, io.opentelemetry.api.trace.SpanBuilder spanBuilder)
Add a span created from givenSpanBuilderfor the processor identified at the given locationString. When containerNameStringis provided, an existing span of that container (eg. Flow) is set as the parent span of this processor span.- Parameters:
containerName-StringtraceComponent-TraceComponentspanBuilder-SpanBuilder- Returns:
- Span
-
endProcessorSpan
public SpanMeta endProcessorSpan(String location, Consumer<io.opentelemetry.api.trace.Span> spanUpdater, Instant endTime)
-
findSpan
public ProcessorSpan findSpan(String location)
-
getRootSpanName
public String getRootSpanName()
-
-