Interface StepHandler

    • Method Detail

      • 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.
      • 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()