Package io.jmix.ui.monitoring
Class UiMonitoring
java.lang.Object
io.jmix.ui.monitoring.UiMonitoring
Logger class for UI performance monitoring.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
canDataLoaderBeMonitored
(DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo monitoringInfo) protected static io.micrometer.core.instrument.Timer
createDataLoaderTimer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String screenId, String loaderId) static io.micrometer.core.instrument.Timer
createMenuTimer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, String menuItemId) static io.micrometer.core.instrument.Timer
createScreenTimer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, ScreenLifeCycle lifeCycle, String screen) protected static String
handleNullTag
(String tag) Prevents null from being tag value.static io.micrometer.core.instrument.Timer.Sample
startTimerSample
(io.micrometer.core.instrument.MeterRegistry meterRegistry) static void
stopDataLoaderTimerSample
(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info)
-
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
Prevents null from being tag value. Actual sanity check should be performed before and prevent monitoring at all.
-