Class OtelContextAwareAbstractRunListener
java.lang.Object
hudson.model.listeners.RunListener<Run>
io.jenkins.plugins.opentelemetry.job.opentelemetry.OtelContextAwareAbstractRunListener
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
MonitoringRunListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.listeners.RunListener
LISTENERS, targetType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
_onCompleted
(Run run, TaskListener listener) void
_onDeleted
(Run run) void
_onFinalized
(Run run) void
_onInitialize
(Run run) void
_onStarted
(Run run, TaskListener listener) _setUpEnvironment
(AbstractBuild build, Launcher launcher, BuildListener listener) io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties
io.opentelemetry.api.metrics.Meter
getMeter()
io.opentelemetry.api.trace.Tracer
final void
onCompleted
(Run run, TaskListener listener) final void
final void
onFinalized
(Run run) final void
onInitialize
(Run run) final void
onStarted
(Run run, TaskListener listener) final void
setJenkinsControllerOpenTelemetry
(JenkinsControllerOpenTelemetry jenkinsControllerOpenTelemetry) final void
setOpenTelemetry
(io.jenkins.plugins.opentelemetry.api.ReconfigurableOpenTelemetry jenkinsControllerOpenTelemetry) final void
setOpenTelemetryTracerService
(OtelTraceService otelTraceService) final Environment
setUpEnvironment
(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.model.listeners.RunListener
all, fireCompleted, fireDeleted, fireFinalized, fireInitialize, fireStarted, register, unregister
-
Constructor Details
-
OtelContextAwareAbstractRunListener
public OtelContextAwareAbstractRunListener()
-
-
Method Details
-
setOpenTelemetryTracerService
-
setJenkinsControllerOpenTelemetry
@Inject public final void setJenkinsControllerOpenTelemetry(@NonNull JenkinsControllerOpenTelemetry jenkinsControllerOpenTelemetry) -
setOpenTelemetry
@Inject public final void setOpenTelemetry(@NonNull io.jenkins.plugins.opentelemetry.api.ReconfigurableOpenTelemetry jenkinsControllerOpenTelemetry) -
onCompleted
- Overrides:
onCompleted
in classRunListener<Run>
-
_onCompleted
-
onFinalized
- Overrides:
onFinalized
in classRunListener<Run>
-
_onFinalized
-
onInitialize
- Overrides:
onInitialize
in classRunListener<Run>
-
_onInitialize
-
onStarted
- Overrides:
onStarted
in classRunListener<Run>
-
_onStarted
-
setUpEnvironment
public final Environment setUpEnvironment(@NonNull AbstractBuild build, @NonNull Launcher launcher, @NonNull BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException - Overrides:
setUpEnvironment
in classRunListener<Run>
- Throws:
IOException
InterruptedException
Run.RunnerAbortedException
-
_setUpEnvironment
@NonNull public Environment _setUpEnvironment(@NonNull AbstractBuild build, @NonNull Launcher launcher, @NonNull BuildListener listener) throws IOException, InterruptedException, Run.RunnerAbortedException -
onDeleted
- Overrides:
onDeleted
in classRunListener<Run>
-
_onDeleted
-
getTraceService
-
getTracer
@NonNull public io.opentelemetry.api.trace.Tracer getTracer() -
getMeter
@NonNull public io.opentelemetry.api.metrics.Meter getMeter() -
getConfigProperties
public io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties getConfigProperties()
-