Class DiagnosticsSupport

java.lang.Object
dev.ua.theroer.magicutils.diagnostics.DiagnosticsSupport

public final class DiagnosticsSupport extends Object
Factory and runtime wiring helpers for diagnostics.
  • Method Details

    • install

      public static DiagnosticsService install(MagicRuntime runtime)
      Installs the default diagnostics service and built-in checks into a runtime.
      Parameters:
      runtime - runtime container
      Returns:
      installed diagnostics service
    • install

      public static DiagnosticsService install(MagicRuntime runtime, @Nullable @Nullable Consumer<DiagnosticRegistry> registryConfigurer)
      Installs the default diagnostics service and lets callers register custom checks.
      Parameters:
      runtime - runtime container
      registryConfigurer - custom registry configurer
      Returns:
      installed diagnostics service