Class AbstractMonitoringAction
java.lang.Object
io.jenkins.plugins.opentelemetry.job.action.AbstractMonitoringAction
- All Implemented Interfaces:
Action
,ModelObject
,OtelMonitoringAction
- Direct Known Subclasses:
AbstractInvisibleMonitoringAction
,MonitoringAction
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMonitoringAction
(io.opentelemetry.api.trace.Span span, List<io.opentelemetry.context.Scope> scopes) -
Method Summary
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
-
Field Details
-
spanName
-
w3cTraceContext
-
-
Constructor Details
-
AbstractMonitoringAction
public AbstractMonitoringAction(io.opentelemetry.api.trace.Span span, List<io.opentelemetry.context.Scope> scopes) - Parameters:
span
- span of this actionscopes
- scope and underlying scopes associated with the span.
-
-
Method Details
-
getSpanName
-
getW3cTraceContext
- Specified by:
getW3cTraceContext
in interfaceOtelMonitoringAction
-
getSpan
@CheckForNull public io.opentelemetry.api.trace.Span getSpan()- Specified by:
getSpan
in interfaceOtelMonitoringAction
-
getTraceId
-
getSpanId
-
purgeSpanAndCloseAssociatedScopes
public void purgeSpanAndCloseAssociatedScopes()- Specified by:
purgeSpanAndCloseAssociatedScopes
in interfaceOtelMonitoringAction
-
toString
-
hasEnded
public boolean hasEnded()- Specified by:
hasEnded
in interfaceOtelMonitoringAction
- Returns:
true
if the associatedSpan
has ended- See Also:
-
ReadableSpan.hasEnded()
-