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 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 interface StepHandler
    • 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 interface StepHandler
    • ordinal

      public int ordinal()
      Specified by:
      ordinal in interface StepHandler
      Returns:
      the ordinal of this handler to execute step handlers in predictable order. The smallest ordinal is executed first.