Class JvmMonitoringInitializer
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.init.JvmMonitoringInitializer
-
- All Implemented Interfaces:
OtelComponent
,Comparable<OtelComponent>
@Extension(dynamicLoadable=MAYBE, optional=true) public class JvmMonitoringInitializer extends Object implements OtelComponent
Inspired by io.opentelemetry.instrumentation.javaagent.runtimemetrics.RuntimeMetricsInstaller
-
-
Constructor Summary
Constructors Constructor Description JvmMonitoringInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterSdkInitialized(io.opentelemetry.api.OpenTelemetry openTelemetry, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config)
Invoked soon after the Otel SDK has been initialized.-
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.OpenTelemetry openTelemetry, io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config)
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
config
-ConfigProperties
of the newly initialized Otel SDK
-
-