Interface StepHandler

All Superinterfaces:
Comparable<StepHandler>
All Known Implementing Classes:
AbstractGitStepHandler, BuildTriggerStepHandler, DefaultStepHandler, DurableTaskHandler, GitCheckoutStepHandler, GitStepHandler

public interface StepHandler extends Comparable<StepHandler>
  • Method Summary

    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 the Span has been created using the SpanBuilder created by createSpanBuilder(FlowNode, WorkflowRun, Tracer).
    boolean
    canCreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
     
    default int
     
    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
     
  • Method Details

    • 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 interface Comparable<StepHandler>
    • afterSpanCreated

      default void afterSpanCreated(@NonNull org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode node, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
      Invoked after the Span has been created using the SpanBuilder created by createSpanBuilder(FlowNode, WorkflowRun, Tracer). The created Span can be retrieved using Span.current()