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
, andpowershell
).
-
-
Constructor Summary
Constructors Constructor Description DurableTaskHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCreateSpanBuilder(org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, org.jenkinsci.plugins.workflow.job.WorkflowRun run)
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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.opentelemetry.job.step.StepHandler
afterSpanCreated, compareTo, ordinal
-
-
-
-
Method Detail
-
canCreateSpanBuilder
public boolean canCreateSpanBuilder(@NonNull org.jenkinsci.plugins.workflow.graph.FlowNode flowNode, @NonNull org.jenkinsci.plugins.workflow.job.WorkflowRun run)
- Specified by:
canCreateSpanBuilder
in 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:
createSpanBuilder
in interfaceStepHandler
-
-