Class TraceInfoAction
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- org.datadog.jenkins.plugins.datadog.model.DatadogPluginAction
-
- org.datadog.jenkins.plugins.datadog.model.TraceInfoAction
-
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,org.jenkinsci.plugins.workflow.actions.PersistentAction
public class TraceInfoAction extends DatadogPluginAction
This action stores mapping between IDs ofFlowNode
that are generated by Jenkins, and span IDs that are generated by the plugin.Span ID is submitted with the rest of the tracing data when a pipeline step finishes, but in certain cases it needs to be known before that:
- before an atomic step starts, we add its span ID to the step's environment so that the logic inside the step could create custom spans that are linked as children to the step's span
- if a stage step contains children, its children need to know their parent stage's span ID to use as their parent ID
There is a single trace info action associated with the pipeline, rather than a separate action with a single ID associated with the node. This is done for performance reasons, as changes to run actions are batched, while changes to node actions are written to disk immediately.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TraceInfoAction.ConverterImpl
static class
TraceInfoAction.ConverterV1
-
Constructor Summary
Constructors Constructor Description TraceInfoAction()
TraceInfoAction(Map<String,Long> spanIdByNodeId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Long
getOrCreate(String flowNodeId)
int
hashCode()
Long
removeOrCreate(String flowNodeId)
String
toString()
-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-