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

public enum JfrFeature extends Enum<JfrFeature>
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
    • CLASS_LOAD_METRICS

      public static final JfrFeature CLASS_LOAD_METRICS
    • CONTEXT_SWITCH_METRICS

      public static final JfrFeature CONTEXT_SWITCH_METRICS
    • CPU_COUNT_METRICS

      public static final JfrFeature CPU_COUNT_METRICS
    • CPU_UTILIZATION_METRICS

      public static final JfrFeature CPU_UTILIZATION_METRICS
    • GC_DURATION_METRICS

      public static final JfrFeature GC_DURATION_METRICS
    • LOCK_METRICS

      public static final JfrFeature LOCK_METRICS
    • MEMORY_ALLOCATION_METRICS

      public static final JfrFeature MEMORY_ALLOCATION_METRICS
    • MEMORY_POOL_METRICS

      public static final JfrFeature MEMORY_POOL_METRICS
    • NETWORK_IO_METRICS

      public static final JfrFeature NETWORK_IO_METRICS
    • THREAD_METRICS

      public static final JfrFeature THREAD_METRICS
  • Method Details

    • values

      public static JfrFeature[] values()
      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)
      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