Class RuntimeMetricsBuilder
java.lang.Object
io.opentelemetry.instrumentation.runtimemetrics.java17.RuntimeMetricsBuilder
Builder for
RuntimeMetrics.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and start anRuntimeMetricswith the config from this builder.Enable the capture of the jvm.gc.cause attribute with the jvm.gc.duration metric.Disable telemetry collection for allJfrFeatures.Disable all JMX telemetry collection.Disable telemetry collection for all metrics.disableFeature(JfrFeature feature) Disable telemetry collection associated with theJfrFeature.Enable experimental JMX telemetry collection.Enable telemetry collection for allJfrFeatures.enableFeature(JfrFeature feature) Enable telemetry collection associated with theJfrFeature.
-
Method Details
-
enableAllFeatures
Enable telemetry collection for allJfrFeatures. -
enableFeature
Enable telemetry collection associated with theJfrFeature. -
disableAllFeatures
Disable telemetry collection for allJfrFeatures. -
disableAllMetrics
Disable telemetry collection for all metrics. -
disableFeature
Disable telemetry collection associated with theJfrFeature. -
disableAllJmx
Disable all JMX telemetry collection. -
emitExperimentalTelemetry
Enable experimental JMX telemetry collection. -
captureGcCause
Enable the capture of the jvm.gc.cause attribute with the jvm.gc.duration metric. -
build
Build and start anRuntimeMetricswith the config from this builder.
-