Interface StepHandler
-
- All Superinterfaces:
Comparable<StepHandler>
- All Known Implementing Classes:
AbstractGitStepHandler
,BuildTriggerStepHandler
,DefaultStepHandler
,DurableTaskHandler
,GitCheckoutStepHandler
,GitStepHandler
public interface StepHandler extends Comparable<StepHandler>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
afterSpanCreated(org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
Invoked after theSpan
has been created using theSpanBuilder
created bycreateSpanBuilder(FlowNode, WorkflowRun, Tracer)
.boolean
canCreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
default int
compareTo(StepHandler other)
io.opentelemetry.api.trace.SpanBuilder
createSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run, io.opentelemetry.api.trace.Tracer tracer)
default int
ordinal()
-
-
-
Method Detail
-
canCreateSpanBuilder
boolean canCreateSpanBuilder(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
createSpanBuilder
@NonNull io.opentelemetry.api.trace.SpanBuilder createSpanBuilder(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode node, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run, @NonNull io.opentelemetry.api.trace.Tracer tracer)
-
ordinal
default int ordinal()
- Returns:
- the ordinal of this handler to execute step handlers in predictable order. The smallest ordinal is executed first.
-
compareTo
default int compareTo(StepHandler other)
- Specified by:
compareTo
in interfaceComparable<StepHandler>
-
afterSpanCreated
default void afterSpanCreated(@NonNull org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode node, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
Invoked after theSpan
has been created using theSpanBuilder
created bycreateSpanBuilder(FlowNode, WorkflowRun, Tracer)
. The createdSpan
can be retrieved usingSpan.current()
-
-