Class TelemetryOptions

java.lang.Object
codes.grow.packages.otelcollector.TelemetryOptions

public final class TelemetryOptions extends Object
Options of OtelCollectorTelemetry.initTelemetry(OtelCollectorConfig, TelemetryOptions): per-signal switches over the config, global registration, metric settings and exporter replacements (tests).
  • Method Details

    • defaults

      public static TelemetryOptions defaults()
      The defaults: signals from the config, global registration on.
      Returns:
      options
    • builder

      public static TelemetryOptions.Builder builder()
      Starts a builder.
      Returns:
      a new builder
    • setGlobal

      public boolean setGlobal()
      Returns whether the providers are registered as the global OpenTelemetry.
      Returns:
      true by default