Class DefaultStepHandler
java.lang.Object
io.jenkins.plugins.opentelemetry.job.step.DefaultStepHandler
- All Implemented Interfaces:
StepHandler
,Comparable<StepHandler>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Constructor Details
-
DefaultStepHandler
public DefaultStepHandler()
-
-
Method Details
-
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.
-