Class MonitoringComputerListener
- java.lang.Object
-
- hudson.slaves.ComputerListener
-
- io.jenkins.plugins.opentelemetry.computer.MonitoringComputerListener
-
- All Implemented Interfaces:
ExtensionPoint
,OtelComponent
,Comparable<OtelComponent>
@Extension(dynamicLoadable=YES, optional=true) public class MonitoringComputerListener extends ComputerListener implements OtelComponent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MonitoringComputerListener()
-
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
onLaunchFailure(Computer computer, TaskListener taskListener)
void
preOnline(Computer computer, hudson.remoting.Channel channel, FilePath root, TaskListener listener)
-
Methods inherited from class hudson.slaves.ComputerListener
all, onConfigurationChange, onOffline, onOffline, onOnline, onOnline, onTemporarilyOffline, onTemporarilyOnline, preLaunch, register, unregister
-
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
-
preOnline
public void preOnline(Computer computer, hudson.remoting.Channel channel, FilePath root, TaskListener listener) throws IOException, InterruptedException
- Overrides:
preOnline
in classComputerListener
- Throws:
IOException
InterruptedException
-
onLaunchFailure
public void onLaunchFailure(Computer computer, TaskListener taskListener) throws IOException, InterruptedException
- Overrides:
onLaunchFailure
in classComputerListener
- Throws:
IOException
InterruptedException
-
-