Class DiagnosticsSupport
java.lang.Object
dev.ua.theroer.magicutils.diagnostics.DiagnosticsSupport
Factory and runtime wiring helpers for diagnostics.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DiagnosticsServiceinstall(MagicRuntime runtime) Installs the default diagnostics service and built-in checks into a runtime.static DiagnosticsServiceinstall(MagicRuntime runtime, @Nullable Consumer<DiagnosticRegistry> registryConfigurer) Installs the default diagnostics service and lets callers register custom checks.
-
Method Details
-
install
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 containerregistryConfigurer- custom registry configurer- Returns:
- installed diagnostics service
-