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, waitMethods 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:
getW3cTraceContextin interfaceOtelMonitoringAction
-
getSpan
@CheckForNull public io.opentelemetry.api.trace.Span getSpan()- Specified by:
getSpanin interfaceOtelMonitoringAction
-
getTraceId
-
getSpanId
-
purgeSpanAndCloseAssociatedScopes
public void purgeSpanAndCloseAssociatedScopes()- Specified by:
purgeSpanAndCloseAssociatedScopesin interfaceOtelMonitoringAction
-
toString
-
hasEnded
public boolean hasEnded()- Specified by:
hasEndedin interfaceOtelMonitoringAction- Returns:
trueif the associatedSpanhas ended- See Also:
-