Class JfrConfig
java.lang.Object
io.opentelemetry.instrumentation.runtimetelemetry.internal.JfrConfig
Configuration holder for JFR telemetry. On Java 8, this is a no-op implementation since JFR is
not available. On Java 17+, this is replaced by an implementation that manages JFR features.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionbuildJfrTelemetry(boolean preferJfrMetrics, io.opentelemetry.api.metrics.Meter meter) static JfrConfigcreate()disableFeature(String featureName) enableFeature(String featureName) booleansetUseLegacyJfrCpuCountMetric(boolean useLegacy)
-
Method Details
-
create
-
enableAllFeatures
-
disableAllFeatures
-
enableExperimentalFeatures
-
enableFeature
-
disableFeature
-
setUseLegacyJfrCpuCountMetric
-
isJfrAvailable
public boolean isJfrAvailable() -
buildJfrTelemetry
@Nullable public AutoCloseable buildJfrTelemetry(boolean preferJfrMetrics, io.opentelemetry.api.metrics.Meter meter)
-