Class DefaultStepHandler
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.step.DefaultStepHandler
-
- All Implemented Interfaces:
StepHandler
,Comparable<StepHandler>
@Extension public class DefaultStepHandler extends Object implements StepHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultStepHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
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)
int
ordinal()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.opentelemetry.job.step.StepHandler
afterSpanCreated, compareTo
-
-
-
-
Method Detail
-
canCreateSpanBuilder
public boolean canCreateSpanBuilder(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
- Specified by:
canCreateSpanBuilder
in interfaceStepHandler
-
createSpanBuilder
@NonNull public 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)
- Specified by:
createSpanBuilder
in interfaceStepHandler
-
ordinal
public int ordinal()
- Specified by:
ordinal
in interfaceStepHandler
- Returns:
- the ordinal of this handler to execute step handlers in predictable order. The smallest ordinal is executed first.
-
-