java.lang.Object
java.lang.Enum<JfrFeature>
io.opentelemetry.instrumentation.runtimemetrics.java17.JfrFeature
All Implemented Interfaces:
Serializable, Comparable<JfrFeature>, Constable

@Deprecated public enum JfrFeature extends Enum<JfrFeature>
Deprecated.
Use RuntimeTelemetry.builder(io.opentelemetry.api.OpenTelemetry) in the runtime-telemetry module instead. To enable experimental features, use Experimental.setEmitExperimentalMetrics(io.opentelemetry.instrumentation.runtimetelemetry.RuntimeTelemetryBuilder, boolean). To enable JFR collection for metrics that overlap with JMX, use Experimental.setPreferJfrMetrics(io.opentelemetry.instrumentation.runtimetelemetry.RuntimeTelemetryBuilder, boolean). To disable specific metrics, configure metric views.
Enumeration of JFR features, which can be toggled on or off via RuntimeMetricsBuilder.

Features are disabled by default if they are already available through io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry-java8 JMX based instrumentation.

  • Enum Constant Details

    • BUFFER_METRICS

      public static final JfrFeature BUFFER_METRICS
      Deprecated.
    • CLASS_LOAD_METRICS

      public static final JfrFeature CLASS_LOAD_METRICS
      Deprecated.
    • CONTEXT_SWITCH_METRICS

      public static final JfrFeature CONTEXT_SWITCH_METRICS
      Deprecated.
    • CPU_COUNT_METRICS

      public static final JfrFeature CPU_COUNT_METRICS
      Deprecated.
    • CPU_UTILIZATION_METRICS

      public static final JfrFeature CPU_UTILIZATION_METRICS
      Deprecated.
    • GC_DURATION_METRICS

      public static final JfrFeature GC_DURATION_METRICS
      Deprecated.
    • LOCK_METRICS

      public static final JfrFeature LOCK_METRICS
      Deprecated.
    • MEMORY_ALLOCATION_METRICS

      public static final JfrFeature MEMORY_ALLOCATION_METRICS
      Deprecated.
    • MEMORY_POOL_METRICS

      public static final JfrFeature MEMORY_POOL_METRICS
      Deprecated.
    • NETWORK_IO_METRICS

      public static final JfrFeature NETWORK_IO_METRICS
      Deprecated.
    • THREAD_METRICS

      public static final JfrFeature THREAD_METRICS
      Deprecated.
  • Method Details

    • values

      public static JfrFeature[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JfrFeature valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null