Class AbstractMonitoringAction
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.action.AbstractMonitoringAction
-
- All Implemented Interfaces:
Action
,ModelObject
,OtelMonitoringAction
- Direct Known Subclasses:
AbstractInvisibleMonitoringAction
,MonitoringAction
public abstract class AbstractMonitoringAction extends Object implements Action, OtelMonitoringAction
-
-
Constructor Summary
Constructors Constructor Description AbstractMonitoringAction(io.opentelemetry.api.trace.Span span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentelemetry.api.trace.Span
getSpan()
String
getSpanId()
String
getSpanName()
String
getTraceId()
Map<String,String>
getW3cTraceContext()
boolean
hasEnded()
void
purgeSpan()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
getSpanName
public String getSpanName()
-
getW3cTraceContext
public Map<String,String> getW3cTraceContext()
- Specified by:
getW3cTraceContext
in interfaceOtelMonitoringAction
-
getSpan
@CheckForNull public io.opentelemetry.api.trace.Span getSpan()
- Specified by:
getSpan
in interfaceOtelMonitoringAction
-
getTraceId
public String getTraceId()
-
getSpanId
public String getSpanId()
-
purgeSpan
public void purgeSpan()
- Specified by:
purgeSpan
in interfaceOtelMonitoringAction
-
hasEnded
public boolean hasEnded()
- Specified by:
hasEnded
in interfaceOtelMonitoringAction
- Returns:
true
if the associatedSpan
has ended- See Also:
ReadableSpan.hasEnded()
-
-