Class Experimental

java.lang.Object
io.opentelemetry.instrumentation.micrometer.v1_5.internal.Experimental

public final class Experimental extends Object
This class is internal and experimental. Its APIs are unstable and can change at any time. Its APIs (or a version of them) may be promoted to the public stable API in the future, but no guarantees are made.
  • Method Details

    • setMicrometerHistogramGaugesEnabled

      public static void setMicrometerHistogramGaugesEnabled(OpenTelemetryMeterRegistryBuilder builder, boolean enabled)
      Enables the generation of gauge-based Micrometer histograms. While the Micrometer bridge is able to map Micrometer's DistributionSummary and Timer service level objectives to OpenTelemetry histogram buckets, it might not cover all cases that are normally supported by Micrometer (e.g. the bridge is not able to translate percentiles). With this setting enabled, the Micrometer bridge will additionally emit Micrometer service level objectives and percentiles as separate gauges.

      Note that this setting does not concern the LongTaskTimer, as it is not bridged to an OpenTelemetry histogram.

      This is disabled by default, set this to true to enable gauge-based Micrometer histograms.

    • internalSetMicrometerHistogramGaugesEnabled

      public static void internalSetMicrometerHistogramGaugesEnabled(BiConsumer<OpenTelemetryMeterRegistryBuilder, Boolean> setMicrometerHistogramGaugesEnabled)