Class DurableTaskHandler
java.lang.Object
io.jenkins.plugins.opentelemetry.job.step.DurableTaskHandler
- All Implemented Interfaces:
StepHandler,Comparable<StepHandler>
@Extension(optional=true,
dynamicLoadable=YES)
public class DurableTaskHandler
extends Object
implements StepHandler
Customization of spans for shell step: (
sh, cmd, and powershell).-
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) 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, ordinal
-
Constructor Details
-
DurableTaskHandler
public DurableTaskHandler()
-
-
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
-