Class MonitoringQueueListener
- java.lang.Object
-
- hudson.model.queue.QueueListener
-
- io.jenkins.plugins.opentelemetry.queue.MonitoringQueueListener
-
- All Implemented Interfaces:
ExtensionPoint
,OtelComponent
,Comparable<OtelComponent>
@Extension(dynamicLoadable=YES, optional=true) public class MonitoringQueueListener extends QueueListener implements OtelComponent
Monitor the Jenkins Build queue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MonitoringQueueListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSdkInitialized(io.opentelemetry.api.metrics.Meter meter, io.opentelemetry.api.logs.LoggerProvider loggerProvider, io.opentelemetry.api.events.EventEmitter eventEmitter, io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
Invoked soon after the Otel SDK has been initialized.void
onEnterBlocked(Queue.BlockedItem bi)
void
onEnterWaiting(Queue.WaitingItem wi)
void
onLeaveBlocked(Queue.BlockedItem bi)
void
onLeft(Queue.LeftItem li)
-
Methods inherited from class hudson.model.queue.QueueListener
all, onEnterBuildable, onLeaveBuildable, onLeaveWaiting
-
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.OtelComponent
afterSdkInitialized, beforeSdkShutdown, compareTo, ordinal
-
-
-
-
Method Detail
-
afterSdkInitialized
public void afterSdkInitialized(io.opentelemetry.api.metrics.Meter meter, io.opentelemetry.api.logs.LoggerProvider loggerProvider, io.opentelemetry.api.events.EventEmitter eventEmitter, io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
Description copied from interface:OtelComponent
Invoked soon after the Otel SDK has been initialized. CreatedAutoCloseable
metering instruments don't have to be closed by Otel components, the OpenTelemetry plugin takes care of this (egObservableLongUpDownCounter
,ObservableLongCounter
...)- Specified by:
afterSdkInitialized
in interfaceOtelComponent
- Parameters:
meter
-Meter
of the newly initialized Otel SDKloggerProvider
-Logger
of the newly initialized Otel SDKtracer
-Tracer
of the newly initialized Otel SDKconfigProperties
-ConfigProperties
of the newly initialized Otel SDK
-
onEnterBlocked
public void onEnterBlocked(Queue.BlockedItem bi)
- Overrides:
onEnterBlocked
in classQueueListener
-
onLeaveBlocked
public void onLeaveBlocked(Queue.BlockedItem bi)
- Overrides:
onLeaveBlocked
in classQueueListener
-
onLeft
public void onLeft(Queue.LeftItem li)
- Overrides:
onLeft
in classQueueListener
-
onEnterWaiting
public void onEnterWaiting(Queue.WaitingItem wi)
- Overrides:
onEnterWaiting
in classQueueListener
-
-