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 TypeMethodDescriptionbooleancanCreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run) io.opentelemetry.api.trace.SpanBuildercreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode node, org.jenkinsci.plugins.workflow.job.WorkflowRun run, io.opentelemetry.api.trace.Tracer tracer) intordinal()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
canCreateSpanBuilderin 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:
createSpanBuilderin interfaceStepHandler
-
ordinal
public int ordinal()- Specified by:
ordinalin interfaceStepHandler- Returns:
- the ordinal of this handler to execute step handlers in predictable order. The smallest ordinal is executed first.
-