Class UiMonitoring

java.lang.Object
io.jmix.ui.monitoring.UiMonitoring

public final class UiMonitoring extends Object
Logger class for UI performance monitoring.
  • Method Details

    • createScreenTimer

      public static io.micrometer.core.instrument.Timer createScreenTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, ScreenLifeCycle lifeCycle, String screen)
    • createMenuTimer

      public static io.micrometer.core.instrument.Timer createMenuTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, String menuItemId)
    • startTimerSample

      public static io.micrometer.core.instrument.Timer.Sample startTimerSample(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    • stopDataLoaderTimerSample

      public static void stopDataLoaderTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info)
    • createDataLoaderTimer

      protected static io.micrometer.core.instrument.Timer createDataLoaderTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String screenId, String loaderId)
    • canDataLoaderBeMonitored

      protected static boolean canDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo)
    • handleNullTag

      protected static String handleNullTag(@Nullable String tag)
      Prevents null from being tag value. Actual sanity check should be performed before and prevent monitoring at all.